From 868f4a64eca3fb38fbfa12e7b9a9d0d4a374f369 Mon Sep 17 00:00:00 2001 From: Pitu <7425261+Pitu@users.noreply.github.com> Date: Sun, 16 Sep 2018 00:39:58 -0300 Subject: Begone! --- nginx-ssl.sample.conf | 56 --------------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 nginx-ssl.sample.conf (limited to 'nginx-ssl.sample.conf') diff --git a/nginx-ssl.sample.conf b/nginx-ssl.sample.conf deleted file mode 100644 index b7f46fe..0000000 --- a/nginx-ssl.sample.conf +++ /dev/null @@ -1,56 +0,0 @@ -upstream backend { - server 127.0.0.1:9999; # Change to the port you specified on lolisafe -} - -map $sent_http_content_type $charset { - ~^text/ utf-8; -} - -server { - listen 80; - listen [::]:80; - server_name lolisafe.moe; - return 301 https://$server_name$request_uri; -} - -server { - listen 443 ssl http2; - listen [::]:443 ssl http2; - - server_name lolisafe.moe; - server_tokens off; - - ssl_certificate /path/to/your/fullchain.pem; - ssl_certificate_key /path/to/your/privkey.pem; - ssl_trusted_certificate /path/to/your/fullchain.pem; - - client_max_body_size 100M; # Change this to the max file size you want to allow - - charset $charset; - charset_types *; - - # Uncomment if you are running lolisafe behind CloudFlare. - # 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 *; - root /path/to/your/uploads/folder; - try_files $uri @proxy; - } - - location @proxy { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-NginX-Proxy true; - proxy_pass http://backend; - proxy_redirect off; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_redirect off; - proxy_set_header X-Forwarded-Proto $scheme; - } -} -- cgit v1.2.3