Mercurial Hosting > luan
comparison host/startup/nginx/nginx.default.conf.luan @ 2037:a4435e2e3417 acme-tiny
Edit scripts to use acme-tiny
| author | Violet7 |
|---|---|
| date | Sat, 08 Nov 2025 04:29:49 -0800 |
| parents | 2b5eccebddd9 |
| children |
comparison
equal
deleted
inserted
replaced
| 2036:2740f8a9ba3a | 2037:a4435e2e3417 |
|---|---|
| 1 local rootDir, leKey = ... | 1 local rootDir = ... |
| 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; |
| 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; |
| 16 | 16 |
| 17 location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { | |
| 18 default_type text/plain; | |
| 19 return 200 "$1.<%=leKey%>"; | |
| 20 } | |
| 21 | |
| 22 location ~ /(?<path>.*) { | 17 location ~ /(?<path>.*) { |
| 23 chunked_transfer_encoding off; | 18 chunked_transfer_encoding off; |
| 24 proxy_cache_key $scheme$host$request_uri; | 19 proxy_cache_key $scheme$host$request_uri; |
| 25 proxy_cache nginx_cache; | 20 proxy_cache nginx_cache; |
| 26 proxy_cache_revalidate on; | 21 proxy_cache_revalidate on; |
