mirror of https://github.com/zulip/zulip.git
36 lines
734 B
Plaintext
36 lines
734 B
Plaintext
server {
|
|
listen 80;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 http2;
|
|
server_name zulip.org;
|
|
|
|
ssl on;
|
|
ssl_certificate /etc/letsencrypt/live/zulip.org/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/zulip.org/privkey.pem;
|
|
|
|
location /dist/ {
|
|
autoindex on;
|
|
alias /home/zulip/dist/;
|
|
}
|
|
|
|
location / {
|
|
rewrite ^/ https://zulip.com permanent;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 http2;
|
|
server_name blog.zulip.org;
|
|
|
|
ssl on;
|
|
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;
|
|
}
|
|
}
|