Initial commit: CarrotAssistant admin console (React + Vite + TS)

This commit is contained in:
2026-07-06 16:10:53 +08:00
commit 08355d3a98
31 changed files with 3439 additions and 0 deletions

16
nginx.conf Normal file
View File

@@ -0,0 +1,16 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Proxy API calls to the backend container.
location /admin/ { proxy_pass http://backend:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; }
location /api/ { proxy_pass http://backend:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; }
location /healthz { proxy_pass http://backend:8080; }
# SPA fallback: serve index.html for client-side routes.
location / {
try_files $uri $uri/ /index.html;
}
}