2 | | > |
3 | | > {{{ |
4 | | > upstream cloudflareapi.com { |
5 | | > server 104.16.19.234:443; |
6 | | > server 104.16.18.234:443; |
7 | | > server 104.16.10.234:443; |
8 | | > server 104.16.11.234:443; |
9 | | > |
10 | | > } |
11 | | > |
12 | | > |
13 | | > server { |
14 | | > listen 80; |
15 | | > |
16 | | > |
17 | | > |
18 | | > location /{ |
19 | | > proxy_pass_header Server; |
20 | | > proxy_pass https://cloudflareapi.com; |
21 | | proxy_set_header Host "cloudflareapi.com"; |
22 | | > proxy_set_header X-Real-IP $remote_addr; |
23 | | > proxy_set_header X-Scheme $scheme; |
24 | | > } |
25 | | > } |
26 | | > }}} |
27 | | > |
28 | | > |
| 2 | |
| 3 | {{{ |
| 4 | |
| 5 | upstream cloudflareapi.com { |
| 6 | server 104.16.19.234:443; |
| 7 | server 104.16.18.234:443; |
| 8 | server 104.16.10.234:443; |
| 9 | server 104.16.11.234:443; |
| 10 | |
| 11 | } |
| 12 | |
| 13 | |
| 14 | server { |
| 15 | listen 80; |
| 16 | |
| 17 | location /{ |
| 18 | proxy_pass_header Server; |
| 19 | proxy_pass https://cloudflareapi.com; |
| 20 | proxy_set_header Host "cloudflareapi.com"; |
| 21 | proxy_set_header X-Real-IP $remote_addr; |
| 22 | proxy_set_header X-Scheme $scheme; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | }}} |
| 27 | |