admin/deploy/nginx/backoffice.conf
alisaza ba1cf3efe2
Some checks failed
Deploy admin to VPS / Build, push, and deploy admin (push) Has been cancelled
ci: simplify Gitea admin deploy for act_runner
Single-job build/push/deploy plus nginx site install so self-hosted
runners do not stall on multi-job graphs.
2026-09-13 15:39:29 +03:30

36 lines
931 B
Plaintext

# Admin backoffice — TLS terminated by Nginx, app on 127.0.0.1:3009
# DNS: point backoffice.ghabilee.ir at this VPS, then:
# certbot --nginx -d backoffice.ghabilee.ir
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream ghabilee_admin {
server 127.0.0.1:3009;
keepalive 16;
}
server {
listen 80;
listen [::]:80;
server_name backoffice.ghabilee.ir;
location /.well-known/acme-challenge/ {
root /var/www/html;
}
location / {
proxy_pass http://ghabilee_admin;
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
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;
proxy_read_timeout 60s;
}
}