|
0
|
1 client_max_body_size 0;
|
|
|
2 proxy_http_version 1.1;
|
|
31
|
3 charset utf-8;
|
|
|
4 proxy_set_header Host $host;
|
|
0
|
5 proxy_set_header X-Real-IP $remote_addr;
|
|
31
|
6 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
7 proxy_set_header X-Forwarded-Proto $scheme;
|
|
0
|
8
|
|
31
|
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
|
|
11
|
21 location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
|
|
|
22 default_type text/plain;
|
|
|
23 return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk";
|
|
|
24 }
|
|
|
25
|
|
29
|
26 if ($http_x_openai_host_hash != "") {
|
|
|
27 return 403;
|
|
|
28 }
|
|
|
29
|
|
31
|
30 access_log /Users/administrator/hghosting/logs/default_nginx_access.log full;
|
|
|
31
|
|
0
|
32 location / {
|
|
|
33 proxy_pass http://127.0.0.1:8080;
|
|
|
34 }
|