Spaces:
Configuration error
Configuration error
| worker_processes 1; | |
| error_log /dev/stderr warn; | |
| pid /tmp/nginx.pid; | |
| events { | |
| worker_connections 512; | |
| } | |
| http { | |
| access_log /dev/stdout; | |
| client_max_body_size 20M; | |
| server { | |
| listen 7860; | |
| server_name _; | |
| # Proxy todo al bot (puerto 8080 interno) | |
| location / { | |
| proxy_pass http://127.0.0.1:8080; | |
| 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 30s; | |
| proxy_connect_timeout 10s; | |
| } | |
| # Webhook de Telegram — ruta crítica | |
| location /webhook { | |
| proxy_pass http://127.0.0.1:8080/webhook; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_read_timeout 30s; | |
| } | |
| # Health check directo | |
| location /health { | |
| proxy_pass http://127.0.0.1:8080/health; | |
| } | |
| } | |
| } | |