diff --git a/dist/nginx.conf b/dist/nginx.conf index 78ee8a5404..3f0106ecf7 100644 --- a/dist/nginx.conf +++ b/dist/nginx.conf @@ -66,11 +66,11 @@ server { location / { add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; - try_files $uri @proxy; + try_files $uri @mastodon; } # If Docker is used for deployment and Rails serves static files, - # then needed must replace line `try_files $uri =404;` with `try_files $uri @proxy;`. + # then needed must replace line `try_files $uri =404;` with `try_files $uri @mastodon;`. location ^~ /assets/ { add_header Cache-Control "public, max-age=2419200, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; @@ -140,7 +140,7 @@ server { tcp_nodelay on; } - location @proxy { + location @mastodon { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;