mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 08:34:13 -05:00
Fix nginx location matching (#20198)
This commit is contained in:
parent
dd7176a4b5
commit
53817294fc
2
dist/nginx.conf
vendored
2
dist/nginx.conf
vendored
@ -58,7 +58,7 @@ server {
|
|||||||
|
|
||||||
# If Docker is used for deployment and Rails serves static files,
|
# 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 @proxy;`.
|
||||||
location = sw.js {
|
location = /sw.js {
|
||||||
add_header Cache-Control "public, max-age=604800, must-revalidate";
|
add_header Cache-Control "public, max-age=604800, must-revalidate";
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
|
Loading…
Reference in New Issue
Block a user