Mercurial Hosting > luan
annotate host/startup/nginx/nginx.default.conf.luan @ 2038:b4b3017ac28d acme-tiny tip
cleanup setup dir
| author | Violet7 |
|---|---|
| date | Sat, 08 Nov 2025 04:53:29 -0800 |
| parents | a4435e2e3417 |
| children |
| rev | line source |
|---|---|
| 2037 | 1 local rootDir = ... |
| 1632 | 2 |
| 3 %> | |
| 4 client_max_body_size 32m; | |
| 5 | |
| 6 proxy_http_version 1.1; | |
| 7 proxy_set_header Host $http_host; | |
|
1742
d778f1f2598a
make server side events proxy work
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
1632
diff
changeset
|
8 proxy_set_header Connection ''; |
|
d778f1f2598a
make server side events proxy work
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
1632
diff
changeset
|
9 |
| 1632 | 10 error_log <%=rootDir%>/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 ~ /(?<path>.*) { | |
|
1742
d778f1f2598a
make server side events proxy work
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
1632
diff
changeset
|
18 chunked_transfer_encoding off; |
| 1632 | 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; | |
| 1930 | 27 proxy_read_timeout 24h; |
| 1632 | 28 proxy_pass http://luan; |
| 29 } | |
| 30 <% |
