Mercurial Hosting > luan
comparison host/startup/nginx/nginx.default.conf.luan @ 2133:c3b4c19f2d8a
attempt to autodetect and use nginx confs dir
| author | Violet7 |
|---|---|
| date | Fri, 16 Jan 2026 17:29:05 -0800 |
| parents | 6a2383baecb6 |
| children |
comparison
equal
deleted
inserted
replaced
| 2132:44f47df52976 | 2133:c3b4c19f2d8a |
|---|---|
| 1 local rootDir = ... | 1 local luanhostDir = ... |
| 2 | 2 |
| 3 %> | 3 %> |
| 4 client_max_body_size 32m; | 4 client_max_body_size 32m; |
| 5 | 5 |
| 6 proxy_http_version 1.1; | 6 proxy_http_version 1.1; |
| 7 proxy_set_header Host $http_host; | 7 proxy_set_header Host $http_host; |
| 8 proxy_set_header Connection ''; | 8 proxy_set_header Connection ''; |
| 9 | 9 |
| 10 error_log <%=rootDir%>/logs/nginx_error.log; | 10 error_log <%=luanhostDir%>/logs/nginx_error.log; |
| 11 | 11 |
| 12 proxy_set_header X-Forwarded-Proto $scheme; | 12 proxy_set_header X-Forwarded-Proto $scheme; |
| 13 proxy_set_header X-Real-IP $remote_addr; | 13 proxy_set_header X-Real-IP $remote_addr; |
| 14 | 14 |
| 15 charset utf-8; | 15 charset utf-8; |
