nginx: Update zulip.org nginx configuration.

* Added zulipbot to configuration.
* Added redirect to zulipchat.com for homepage.
This commit is contained in:
Tim Abbott 2017-09-16 02:09:53 -07:00
parent 0d5badb71a
commit 6c4006625d
1 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,11 @@ server {
return 301 https://$host$request_uri;
}
upstream zulipbot {
server localhost:8080;
keepalive 10000;
}
server {
listen 443;
server_name zulip.org;
@ -16,8 +21,13 @@ server {
alias /home/zulip/dist/;
}
location /zulipbot/ {
rewrite /zulipbot(.*)/ /$1 break;
proxy_pass http://zulipbot;
proxy_set_header X-Real-IP $remote_addr;
}
location / {
autoindex on;
alias /home/zulip/zulip.github.io/;
rewrite ^/ https://zulipchat.com permanent;
}
}