about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkeiya <keiya_21@yahoo.co.jp>2022-11-09 12:12:57 +0900
committerGitHub <noreply@github.com>2022-11-09 04:12:57 +0100
commit53817294fc95eabfed6129138f9aaa920e13c4b9 (patch)
treed5f4a0258c7710873c5cb42637e01125c010dd9d
parentdd7176a4b54a69f4a96648acb71abdff9fd45e3c (diff)
Fix nginx location matching (#20198)
-rw-r--r--dist/nginx.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/nginx.conf b/dist/nginx.conf
index 5c16693d0..5bc960e25 100644
--- a/dist/nginx.conf
+++ b/dist/nginx.conf
@@ -58,7 +58,7 @@ server {
 
   # 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;`.
-  location = sw.js {
+  location = /sw.js {
     add_header Cache-Control "public, max-age=604800, must-revalidate";
     add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
     try_files $uri =404;