Skip to content

Commit

Permalink
doc: update docs/nginx.md (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 11, 2024
1 parent b6d62f4 commit f6fe236
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions docs/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -897,26 +897,26 @@ location = /robots.txt {

```nginx
server {
listen 80;
server_name xxx.top;
listen 80;
server_name xxx.top;
location / {
access_log /data/logs/nginx/json_ip.log json;
proxy_set_header Host $http_host;
location / {
access_log /data/logs/nginx/json_ip.log json;
proxy_set_header Host $http_host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:9999;
}
}
}
server {
listen 9999;
listen 9999;
location / {
access_log off;
default_type application/json;
return 200 "{\"ip\":\"$http_X_Real_Ip\"}";
}
location / {
access_log off;
default_type application/json;
return 200 "{\"ip\":\"$http_X_Real_Ip\"}";

This comment has been minimized.

Copy link
@Petr-mel

Petr-mel Oct 12, 2024

}
}
```

Expand Down Expand Up @@ -973,6 +973,7 @@ server {
}
}
```

### 流量镜像配置
<!--rehype:wrap-class=col-span-3-->
Expand Down

0 comments on commit f6fe236

Please sign in to comment.