Skip to content

Commit 5381729

Browse files
authored
Fix nginx location matching (mastodon#20198)
1 parent dd7176a commit 5381729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ server {
5858

5959
# If Docker is used for deployment and Rails serves static files,
6060
# then needed must replace line `try_files $uri =404;` with `try_files $uri @proxy;`.
61-
location = sw.js {
61+
location = /sw.js {
6262
add_header Cache-Control "public, max-age=604800, must-revalidate";
6363
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
6464
try_files $uri =404;

0 commit comments

Comments
 (0)