Mercurial Hosting > hghosting
diff nginx.default.conf @ 31:b688b17bbe6b
more nginx conf
| author | Violet7 |
|---|---|
| date | Tue, 19 May 2026 02:41:27 -0700 |
| parents | f83fbf2b6d4f |
| children | 4930c7b51ac7 |
line wrap: on
line diff
--- a/nginx.default.conf Tue May 19 02:10:59 2026 -0700 +++ b/nginx.default.conf Tue May 19 02:41:27 2026 -0700 @@ -1,10 +1,23 @@ client_max_body_size 0; proxy_http_version 1.1; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; + charset utf-8; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; - charset utf-8; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + log_format debug '$remote_addr - $remote_user [$time_local] ' + '"$request" $status $body_bytes_sent ' + 'host="$host" ' + 'referer="$http_referer" ' + 'ua="$http_user_agent" ' + 'xff="$http_x_forwarded_for" ' + 'xreal="$http_x_real_ip" ' + 'openai_hash="$http_x_openai_host_hash" ' + 'rt=$request_time ' + 'urt=$upstream_response_time ' + 'upstream="$upstream_addr"'; + location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { default_type text/plain; return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk"; @@ -14,6 +27,8 @@ return 403; } + access_log /Users/administrator/hghosting/logs/default_nginx_access.log full; + location / { proxy_pass http://127.0.0.1:8080; }
