Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/host/startup/nginx/luanhost_default_site.conf.luan Wed Jan 21 20:15:11 2026 -0800 @@ -0,0 +1,30 @@ +local luanhostDir = ... + +%> + client_max_body_size 32m; + + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header Connection ''; + + error_log <%=luanhostDir%>/logs/nginx_error.log; + + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Real-IP $remote_addr; + + charset utf-8; + + location / { + chunked_transfer_encoding off; + proxy_cache_key $scheme$host$request_uri; + proxy_cache nginx_cache; + proxy_cache_revalidate on; + proxy_cache_min_uses 1; + proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; + proxy_cache_background_update on; + proxy_cache_lock on; + add_header X-Cache-Status $upstream_cache_status; + proxy_read_timeout 24h; + proxy_pass http://127.0.0.1:8080; + } +<%
