Files
devops/nginx_user_conf.d/server.conf
gitea ae96b79fb2
All checks were successful
Build and Deploy Demo App / build-and-deploy (push) Successful in 33s
adding reverse proxy with ssl
2025-11-26 00:59:21 +03:30

18 lines
494 B
Plaintext

server {
listen 80;
listen 443 ssl;
server_name demo.networkwizard.xyz;
# SSL config handled by the container image
location / {
proxy_pass http://app:5000;
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;
}
# Redirect HTTP to HTTPS (handled automatically by the image after certs are obtained)
}