Mercurial Hosting > hghosting
comparison nginx.default.conf @ 31:b688b17bbe6b
more nginx conf
| author | Violet7 |
|---|---|
| date | Tue, 19 May 2026 02:41:27 -0700 |
| parents | f83fbf2b6d4f |
| children | 4930c7b51ac7 |
comparison
equal
deleted
inserted
replaced
| 30:66ddf3654046 | 31:b688b17bbe6b |
|---|---|
| 1 client_max_body_size 0; | 1 client_max_body_size 0; |
| 2 proxy_http_version 1.1; | 2 proxy_http_version 1.1; |
| 3 proxy_set_header Host $http_host; | 3 charset utf-8; |
| 4 proxy_set_header Host $host; | |
| 5 proxy_set_header X-Real-IP $remote_addr; | |
| 6 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| 4 proxy_set_header X-Forwarded-Proto $scheme; | 7 proxy_set_header X-Forwarded-Proto $scheme; |
| 5 proxy_set_header X-Real-IP $remote_addr; | |
| 6 charset utf-8; | |
| 7 | 8 |
| 9 log_format debug '$remote_addr - $remote_user [$time_local] ' | |
| 10 '"$request" $status $body_bytes_sent ' | |
| 11 'host="$host" ' | |
| 12 'referer="$http_referer" ' | |
| 13 'ua="$http_user_agent" ' | |
| 14 'xff="$http_x_forwarded_for" ' | |
| 15 'xreal="$http_x_real_ip" ' | |
| 16 'openai_hash="$http_x_openai_host_hash" ' | |
| 17 'rt=$request_time ' | |
| 18 'urt=$upstream_response_time ' | |
| 19 'upstream="$upstream_addr"'; | |
| 20 | |
| 8 location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { | 21 location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { |
| 9 default_type text/plain; | 22 default_type text/plain; |
| 10 return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk"; | 23 return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk"; |
| 11 } | 24 } |
| 12 | 25 |
| 13 if ($http_x_openai_host_hash != "") { | 26 if ($http_x_openai_host_hash != "") { |
| 14 return 403; | 27 return 403; |
| 15 } | 28 } |
| 16 | 29 |
| 30 access_log /Users/administrator/hghosting/logs/default_nginx_access.log full; | |
| 31 | |
| 17 location / { | 32 location / { |
| 18 proxy_pass http://127.0.0.1:8080; | 33 proxy_pass http://127.0.0.1:8080; |
| 19 } | 34 } |
