Multi-stage Dockerfiles for accounts-service/configs-service/gateway, a docker-compose.prod.yml wiring fresh Postgres+MinIO+the three services on a private network, nginx site templates for visual.loki-code.dev (static SPA + /api proxy) and bekend.loki-code.dev (full gateway proxy for the mod), and idempotent setup.sh/deploy.sh scripts for the VDS. Claude-Session: https://claude.ai/code/session_01F1M1Jic1wTSn4igUENynmZ
20 lines
502 B
Text
20 lines
502 B
Text
server {
|
|
server_name visual.loki-code.dev;
|
|
root /var/www/visual.loki-code.dev/html;
|
|
index index.html;
|
|
|
|
location /api/ {
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
listen 80;
|
|
}
|