Browse Source

Mirrored nginx.sample.conf

Kayo 6 years ago
parent
commit
35da812a01
1 changed files with 3 additions and 4 deletions
  1. 3 4
      nginx-ssl.sample.conf

+ 3 - 4
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 *;