Mercurial Hosting > luan
comparison host/startup/nginx/luanhost_default_site.conf.luan @ 2146:2bc779c2451d nginx_decoupled
rename files
| author | Violet7 |
|---|---|
| date | Wed, 21 Jan 2026 20:15:11 -0800 |
| parents | host/startup/nginx/nginx.default.conf.luan@c3b4c19f2d8a |
| children |
comparison
equal
deleted
inserted
replaced
| 2145:2b498e7f6d9e | 2146:2bc779c2451d |
|---|---|
| 1 local luanhostDir = ... | |
| 2 | |
| 3 %> | |
| 4 client_max_body_size 32m; | |
| 5 | |
| 6 proxy_http_version 1.1; | |
| 7 proxy_set_header Host $http_host; | |
| 8 proxy_set_header Connection ''; | |
| 9 | |
| 10 error_log <%=luanhostDir%>/logs/nginx_error.log; | |
| 11 | |
| 12 proxy_set_header X-Forwarded-Proto $scheme; | |
| 13 proxy_set_header X-Real-IP $remote_addr; | |
| 14 | |
| 15 charset utf-8; | |
| 16 | |
| 17 location / { | |
| 18 chunked_transfer_encoding off; | |
| 19 proxy_cache_key $scheme$host$request_uri; | |
| 20 proxy_cache nginx_cache; | |
| 21 proxy_cache_revalidate on; | |
| 22 proxy_cache_min_uses 1; | |
| 23 proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; | |
| 24 proxy_cache_background_update on; | |
| 25 proxy_cache_lock on; | |
| 26 add_header X-Cache-Status $upstream_cache_status; | |
| 27 proxy_read_timeout 24h; | |
| 28 proxy_pass http://127.0.0.1:8080; | |
| 29 } | |
| 30 <% |
