Mercurial
comparison hg-web/nginx/hg-web.conf.template @ 249:c5129452493e
[deploy] Bundle Mercurial with hg-web
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 04 Aug 2026 04:16:45 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 248:b8b6e726964a | 249:c5129452493e |
|---|---|
| 1 server { | |
| 2 listen 80; | |
| 3 listen [::]:80; | |
| 4 server_name __SERVER_NAME__; | |
| 5 | |
| 6 client_max_body_size 1g; | |
| 7 | |
| 8 location = /repo { | |
| 9 proxy_pass http://127.0.0.1:6970; | |
| 10 proxy_http_version 1.1; | |
| 11 proxy_set_header Host $host; | |
| 12 proxy_set_header X-Real-IP $remote_addr; | |
| 13 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| 14 proxy_set_header X-Forwarded-Proto $scheme; | |
| 15 proxy_set_header Connection ""; | |
| 16 | |
| 17 proxy_request_buffering off; | |
| 18 proxy_buffering off; | |
| 19 proxy_cache off; | |
| 20 proxy_read_timeout 3600s; | |
| 21 proxy_send_timeout 3600s; | |
| 22 } | |
| 23 | |
| 24 location / { | |
| 25 proxy_pass http://127.0.0.1:6970; | |
| 26 proxy_http_version 1.1; | |
| 27 proxy_set_header Host $host; | |
| 28 proxy_set_header X-Real-IP $remote_addr; | |
| 29 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| 30 proxy_set_header X-Forwarded-Proto $scheme; | |
| 31 proxy_set_header Connection ""; | |
| 32 proxy_read_timeout 30s; | |
| 33 } | |
| 34 } |