configurations/Nginx/Server Blocks/confluence.libraryofcode.or...

23 lines
678 B
Plaintext
Raw Permalink Normal View History

2021-04-03 02:37:14 -04:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name confluence.libraryofcode.org;
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
location / {
2021-05-21 15:15:57 -04:00
return 307 https://wiki.libraryofcode.org/;
2021-04-03 02:37:14 -04:00
}
2022-02-15 00:26:44 -05:00
2021-04-03 02:37:14 -04:00
location /synchrony {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8091/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}