(damascus-dashboard is archived on Gitea; this is a local-only commit that documents the build workarounds and deploy files in tree.)
22 lines
484 B
Nginx Configuration File
22 lines
484 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name dashboard.hermes.damascusfront.net;
|
|
|
|
# Static files
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# SPA fallback
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Proxy API calls to v3 API server on host
|
|
location /api/ {
|
|
proxy_pass http://host.docker.internal:5170/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|