diff options
| author | Kayo <[email protected]> | 2018-04-01 23:54:42 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-04-01 23:54:42 -0700 |
| commit | 35da812a01a8aea66e0e2a5142bbc2c622979086 (patch) | |
| tree | 82daef2a7ab19779baa3d7348bb116dad359661d /nginx-ssl.sample.conf | |
| parent | Add NGINX compile warning (diff) | |
| download | host.fuwn.me-35da812a01a8aea66e0e2a5142bbc2c622979086.tar.xz host.fuwn.me-35da812a01a8aea66e0e2a5142bbc2c622979086.zip | |
Mirrored nginx.sample.conf
Diffstat (limited to 'nginx-ssl.sample.conf')
| -rw-r--r-- | nginx-ssl.sample.conf | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nginx-ssl.sample.conf b/nginx-ssl.sample.conf index 2e11adf..72d0028 100644 --- a/nginx-ssl.sample.conf +++ b/nginx-ssl.sample.conf @@ -7,9 +7,6 @@ server { listen [::]:80; server_name lolisafe.moe; return 301 https://$server_name$request_uri; - - # Uncomment if you are running lolisafe behind CloudFlare. - #include /path/to/lolisafe/cloudflare-ips; } server { @@ -25,7 +22,9 @@ server { client_max_body_size 100M; # Change this to the max file size you want to allow # Uncomment if you are running lolisafe behind CloudFlare. - #include /path/to/lolisafe/cloudflare-ips; + # This requires NGINX compiled from source with: + # --with-http_realip_module + #include /path/to/lolisafe/real-ip-from-cf; location / { add_header Access-Control-Allow-Origin *; |