Skip to content

Commit bfeb309

Browse files
authored
Fix: handle /api endpoint without trailing slash in mwdb-web Docker (#580)
1 parent 0ae37b5 commit bfeb309

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/nginx.conf.template

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ server {
1111
proxy_set_header X-Forwarded-For $remote_addr;
1212
}
1313

14+
location = /api {
15+
absolute_redirect off;
16+
return 301 /api/;
17+
}
18+
1419
location / {
1520
try_files $uri /index.html =404;
1621
}

0 commit comments

Comments
 (0)