games_app/deploy/edge/nginx.conf
Your Name 5ce6a6811a
Some checks failed
CI / test-and-build (push) Failing after 25s
Add Gitea CI/CD stack, tloto-deploy, and tagged Compose images
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 19:56:39 +02:00

58 lines
1.4 KiB
Nginx Configuration File

worker_processes auto;
events { worker_connections 1024; }
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
server_tokens off;
# HTTP — ACME + redirect (when certs exist) or proxy to Gitea by Host
server {
listen 80 default_server;
server_name _;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 404;
}
}
server {
listen 80;
server_name git.tloto.net;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
proxy_pass http://tloto_gitea:3000;
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;
}
}
# HTTPS for git.tloto.net — enable after placing fullchain.pem + privkey.pem in ./certs/
# Uncomment when certificates are present:
#
# server {
# listen 443 ssl http2;
# server_name git.tloto.net;
# ssl_certificate /etc/nginx/certs/fullchain.pem;
# ssl_certificate_key /etc/nginx/certs/privkey.pem;
# location / {
# proxy_pass http://tloto_gitea:3000;
# 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 https;
# }
# }
}