This commit is contained in:
Nicolas Bally 2019-02-03 15:36:41 +01:00
parent 340498aa3b
commit fa1d0e9a19

View File

@ -5,9 +5,16 @@ upstream musifrat_app_unicorn {
server {
listen [::]:443 ssl;
server_name musifrat-festival.com;
root /srv/www/web/musifrat_app/current/public/@;
root /srv/www/web/musifrat_app/current/public;
try_files $uri/index.html $uri @unicorn;
location @unicorn {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://musifrat_app_unicorn;
proxy_read_timeout 6000;
}
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
@ -31,10 +38,6 @@ server {
include snippets/letsencrypt.conf;
}
server {
listen [::]:443 ssl;
server_name www.musifrat-festival.com;
@ -46,5 +49,3 @@ server {
include snippets/letsencrypt.conf;
}