From 47821474a57d72e9252670881f1fe3f944e3bd25 Mon Sep 17 00:00:00 2001 From: RyoshiKayo Date: Sun, 11 Feb 2018 23:49:11 -0500 Subject: Added CloudFlare Supprt for WeebDev/lolisafe#70 --- nginx-ssl.sample.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nginx-ssl.sample.conf') diff --git a/nginx-ssl.sample.conf b/nginx-ssl.sample.conf index 2172564..2e11adf 100644 --- a/nginx-ssl.sample.conf +++ b/nginx-ssl.sample.conf @@ -7,6 +7,9 @@ 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 { @@ -21,6 +24,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; + location / { add_header Access-Control-Allow-Origin *; root /path/to/your/uploads/folder; -- cgit v1.2.3