fixes or whateva

merge-requests/2/head
Matthew 2021-05-14 01:55:19 -04:00
parent 4c60baf65f
commit fa8ea831e5
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 29 additions and 13 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}