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/ ---
|
# --- Serve frontend index.html at /s/ ---
|
||||||
location = /s/ {
|
location = /s/ {
|
||||||
alias /app/static/index.html;
|
alias /root/repo/urlshortener/static/index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Serve frontend static assets (CSS, JS, etc.) ---
|
# --- Serve frontend static assets (CSS, JS, etc.) ---
|
||||||
# ^~ ensures this takes priority over the general /s/ proxy below.
|
# ^~ ensures this takes priority over the general /s/ proxy below.
|
||||||
location ^~ /s/static/ {
|
location ^~ /s/static/ {
|
||||||
alias /app/static/;
|
alias /root/repo/urlshortener/static/;
|
||||||
expires 7d;
|
expires 7d;
|
||||||
add_header Cache-Control "public, immutable";
|
add_header Cache-Control "public, immutable";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user