antonovmaxim commited on
Commit
b55f3e7
·
1 Parent(s): f1cbde9

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +5 -19
nginx.conf CHANGED
@@ -1,24 +1,10 @@
1
  server {
2
- listen 7860 default_server;
3
- listen [::]:7860 default_server;
4
-
5
- server_name _;
6
-
7
- resolver 1.1.1.1;
8
 
9
  location / {
10
- default_type application/json;
11
- return 200 '{"status":"success","result":"nginx json"}';
 
12
  }
13
-
14
- location /api/ip {
15
- proxy_pass https://api.nn.ci/ip;
16
- add_header x-url $arg_url;
17
- proxy_http_version 1.1;
18
- proxy_set_header Upgrade $http_upgrade;
19
- proxy_set_header Connection 'upgrade';
20
- proxy_cache_bypass $http_upgrade;
21
- proxy_read_timeout 86400;
22
- }
23
-
24
  }
 
1
  server {
2
+ listen 7860;
3
+ server_name example.com;
 
 
 
 
4
 
5
  location / {
6
+ proxy_pass http://example.com;
7
+ proxy_set_header Host $host;
8
+ proxy_set_header X-Real-IP $remote_addr;
9
  }
 
 
 
 
 
 
 
 
 
 
 
10
  }