fix nginx alias path for deployment

This commit is contained in:
2026-03-18 02:58:52 +08:00
parent 86c97391fe
commit 5fa5d49b82
+2 -2
View File
@@ -22,13 +22,13 @@ location = /s {
# --- Serve frontend index.html at /s/ ---
location = /s/ {
alias /app/static/index.html;
alias /root/repo/urlshortener/static/index.html;
}
# --- Serve frontend static assets (CSS, JS, etc.) ---
# ^~ ensures this takes priority over the general /s/ proxy below.
location ^~ /s/static/ {
alias /app/static/;
alias /root/repo/urlshortener/static/;
expires 7d;
add_header Cache-Control "public, immutable";
}