From 06c090fda51144e6236d443018333db2bb2a587e Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Mon, 31 Oct 2022 22:29:47 +0100 Subject: [PATCH] Redirect old /web links --- dist/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dist/nginx.conf b/dist/nginx.conf index 716c277dd0..e22acaeeba 100644 --- a/dist/nginx.conf +++ b/dist/nginx.conf @@ -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 {