From fa8ea831e524b5cfc9d3895313f3e353b96173ca Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 14 May 2021 01:55:19 -0400 Subject: [PATCH] fixes or whateva --- Nginx/Server Blocks/cshd.ins.conf | 28 +++++++++++++++++++ .../staff.libraryofcode.org.conf | 14 +--------- 2 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 Nginx/Server Blocks/cshd.ins.conf diff --git a/Nginx/Server Blocks/cshd.ins.conf b/Nginx/Server Blocks/cshd.ins.conf new file mode 100644 index 0000000..aa1b02b --- /dev/null +++ b/Nginx/Server Blocks/cshd.ins.conf @@ -0,0 +1,28 @@ +server { + listen 10.8.0.1:443 ssl http2; + #listen [::]:443 ssl http2; + server_name cshd.ins; + + ssl_certificate /etc/nginx/ssl/cshd-ins.chain.crt; + ssl_certificate_key /etc/nginx/ssl/cshd-ins.key.pem; + + location / { + + proxy_set_header Host $host; + + proxy_set_header X-Real-IP $remote_addr; + + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_set_header X-Frame-Options SAMEORIGIN; + + proxy_pass http://10.8.0.1:5479; + + proxy_read_timeout 90; + + proxy_redirect http://10.8.0.1:5479 https://modmail.ins; + + } +} diff --git a/Nginx/Server Blocks/staff.libraryofcode.org.conf b/Nginx/Server Blocks/staff.libraryofcode.org.conf index 739dc23..39e2983 100644 --- a/Nginx/Server Blocks/staff.libraryofcode.org.conf +++ b/Nginx/Server Blocks/staff.libraryofcode.org.conf @@ -24,19 +24,7 @@ server { #limit_req zone=one burst=15; location / { - proxy_set_header Host $host; - - proxy_set_header X-Real-IP $remote_addr; - - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - - proxy_set_header X-Forwarded-Proto $scheme; - - proxy_pass http://localhost:3020; - - proxy_read_timeout 90; - - proxy_redirect http://localhost:3020 https://staff.libraryofcode.org; + return 307 https://wiki.libraryofcode.org/en/cs-support; } }