Files
devops/nginx_user_conf.d/server.conf
gitea c442b16a45
All checks were successful
Build and Deploy Demo App / build-and-deploy (push) Successful in 46s
disabled auto certbot, switched to nginx:alpine
2025-11-26 10:49:29 +03:30

30 lines
754 B
Plaintext

server {
listen 80;
server_name demo.networkwizard.xyz;
# Optional: Redirect HTTP to HTTPS (adjust port if needed)
location / {
return 301 https://$host:4433$request_uri;
}
}
server {
listen 443 ssl;
server_name demo.networkwizard.xyz;
ssl_certificate /etc/nginx/ssl/origin_cert.pem;
ssl_certificate_key /etc/nginx/ssl/origin_key.key;
# Optional: Enhance security
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
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;
}
}