2018-11-27 16:08:43 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
2020-10-14 01:53:28 +02:00
|
|
|
listen [::]:80;
|
2018-11-27 16:08:43 +01:00
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2020-10-14 01:53:28 +02:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2018-11-27 16:08:43 +01:00
|
|
|
|
|
|
|
ssl_certificate /etc/ssl/certs/zulip.combined-chain.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/private/zulip.key;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header Connection "";
|
|
|
|
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://127.0.0.1:9991;
|
|
|
|
proxy_read_timeout 1200;
|
|
|
|
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_next_upstream off;
|
|
|
|
}
|
|
|
|
}
|