2017-01-23 06:52:50 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
2020-10-14 01:53:28 +02:00
|
|
|
listen [::]:80;
|
2017-01-23 06:52:50 +01:00
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
|
2017-01-23 06:46:22 +01:00
|
|
|
server {
|
2020-10-14 01:53:28 +02:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2017-01-23 06:46:22 +01:00
|
|
|
server_name zulip.org;
|
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/zulip.org/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/zulip.org/privkey.pem;
|
|
|
|
|
|
|
|
location /dist/ {
|
|
|
|
autoindex on;
|
2017-01-23 06:52:50 +01:00
|
|
|
alias /home/zulip/dist/;
|
2017-01-23 06:46:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2020-06-08 23:04:39 +02:00
|
|
|
rewrite ^/ https://zulip.com permanent;
|
2017-01-23 06:46:22 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-26 23:46:51 +02:00
|
|
|
|
|
|
|
server {
|
2020-10-14 01:53:28 +02:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2020-05-26 23:46:51 +02:00
|
|
|
server_name blog.zulip.org;
|
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/zulip.org/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/zulip.org/privkey.pem;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
rewrite ^/(.*)$ https://blog.zulip.com/$1 permanent;
|
|
|
|
}
|
|
|
|
}
|