comparison host/startup/nginx/nginx.default.conf.luan @ 2062:5ede71739221

merge branches
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 15 Nov 2025 18:07:51 -0700
parents a4435e2e3417
children
comparison
equal deleted inserted replaced
2047:ea026254b3b6 2062:5ede71739221
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;