|
|
@ -56,14 +56,6 @@ server {
|
|
|
|
try_files $uri @proxy;
|
|
|
|
try_files $uri @proxy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /web {
|
|
|
|
|
|
|
|
return 301 /$is_args$args;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location ~ ^/web(\/.*) {
|
|
|
|
|
|
|
|
return 301 $1$is_args$args;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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 {
|
|
|
|