Commit 7d7f7aeab4a6e9fac6cfa0ff588949bf1bd26d41
1 parent
0d443cc1d0
Exists in
master
One more byte to fix static?
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
nginxconf/flashy.cards
View file @
7d7f7ae
upstream backend_production { | 1 | 1 | upstream backend_production { | |
server localhost:7001; | 2 | 2 | server localhost:7001; | |
} | 3 | 3 | } | |
4 | 4 | |||
server { | 5 | 5 | server { | |
server_name flashy.cards; | 6 | 6 | server_name flashy.cards; | |
listen 443 ssl; | 7 | 7 | listen 443 ssl; | |
location / { | 8 | 8 | location / { | |
root /srv/flashy.cards/; | 9 | 9 | root /srv/flashy.cards/; | |
} | 10 | 10 | } | |
11 | 11 | |||
location /static { | 12 | 12 | location ^~ /static { | |
root /srv/; | 13 | 13 | root /srv/; | |
access_log off; | 14 | 14 | access_log off; | |
expires 30d; | 15 | 15 | expires 30d; | |
} | 16 | 16 | } | |
17 | 17 | |||
location ~ /(api|admin|api-auth)/ { | 18 | 18 | location ~ /(api|admin|api-auth)/ { | |
proxy_pass http://backend_production; | 19 | 19 | proxy_pass http://backend_production; | |
proxy_redirect http://backend_production $scheme://flashy.cards; | 20 | 20 | proxy_redirect http://backend_production $scheme://flashy.cards; | |
proxy_set_header Host $host; | 21 | 21 | proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | 22 | 22 | proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 23 | 23 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | 24 | 24 | } | |
25 | 25 | |||
location ^~ /jenkins { | 26 | 26 | location ^~ /jenkins { | |
proxy_pass http://localhost:8080; | 27 | 27 | proxy_pass http://localhost:8080; | |
proxy_redirect http://localhost:8080 $scheme://flashy.cards; | 28 | 28 | proxy_redirect http://localhost:8080 $scheme://flashy.cards; | |
proxy_set_header Host $host; | 29 | 29 | proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | 30 | 30 | proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 31 | 31 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_read_timeout 90; | 32 | 32 | proxy_read_timeout 90; | |
} | 33 | 33 | } | |
ssl_certificate /etc/nginx/ssl/bundle.crt; | 34 | 34 | ssl_certificate /etc/nginx/ssl/bundle.crt; | |
ssl_certificate_key /etc/nginx/ssl/nginx.key; | 35 | 35 | ssl_certificate_key /etc/nginx/ssl/nginx.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | 36 | 36 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; | 37 | 37 | ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; | |
ssl_prefer_server_ciphers on; | 38 | 38 | ssl_prefer_server_ciphers on; | |
keepalive_timeout 70; | 39 | 39 | keepalive_timeout 70; | |
ssl_session_cache shared:SSL:10m; | 40 | 40 | ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 10m; | 41 | 41 | ssl_session_timeout 10m; | |
add_header Strict-Transport-Security "max-age=259200"; | 42 | 42 | add_header Strict-Transport-Security "max-age=259200"; | |
} | 43 | 43 | } | |
44 | 44 | |||
server { | 45 | 45 | server { |