fix nginx alias path for deployment
This commit is contained in:
+2
-2
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user