fix: nginx config for UI serving under base path
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
2026-06-27 00:23:51 +10:00
parent 8ec7de50e3
commit 449ac1d4d2
+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}/;
}
}