From 5fa5d49b82ad0759a12e53f03a358db47f9e2d64 Mon Sep 17 00:00:00 2001 From: cabbagec Date: Wed, 18 Mar 2026 02:58:52 +0800 Subject: [PATCH] fix nginx alias path for deployment --- nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 0e613a1..6d428e4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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"; }