From feb4e82f25ff15c746ee6cc9924b7692138d9980 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 8 Sep 2025 14:08:38 +0800 Subject: [PATCH] chore: serve static files directly via Nginx --- nginx/default.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx/default.conf b/nginx/default.conf index c8fb4d6..139b12e 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -20,6 +20,11 @@ server { } location / { + root /app/frontend/dist; + try_files $uri $uri/ /index.html =404; + } + + location /api { proxy_pass http://127.0.0.1:8082; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;