fix: nginx config for UI serving under base path #61

Merged
benvin merged 1 commits from benvin/fix-ui-nginx-basepath into master 2026-06-27 00:43:45 +10:00
+6 -1
View File
@@ -5,7 +5,12 @@ server {
root /usr/share/nginx/html;
index index.html;
location ${BASE_PATH} {
location ${BASE_PATH}/ {
rewrite ^${BASE_PATH}(/.*)$ $1 break;
try_files $uri $uri/ /index.html;
}
location = ${BASE_PATH} {
return 301 ${BASE_PATH}/;
}
}