Redirect old /web links

This commit is contained in:
Jeremy Kescher 2022-10-31 22:29:47 +01:00
parent 30223ea224
commit 06c090fda5
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940

8
dist/nginx.conf vendored
View file

@ -56,6 +56,14 @@ server {
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,
# then needed must replace line `try_files $uri =404;` with `try_files $uri @proxy;`.
location = sw.js {