Skip to content

Commit

Permalink
puppet: Add redirect to https to zulip.org.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott committed Jan 23, 2017
1 parent 44776c4 commit bbd853e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions puppet/zulip/files/nginx/sites-available/zulip-org
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
server {
listen 80;
return 301 https://$host$request_uri;
}

server {
listen 443;
server_name zulip.org;
Expand All @@ -8,11 +13,11 @@ server {

location /dist/ {
autoindex on;
alias /home/zulip/dist/;
alias /home/zulip/dist/;
}

location / {
autoindex on;
alias /home/zulip/zulip.github.io/;
alias /home/zulip/zulip.github.io/;
}
}

0 comments on commit bbd853e

Please sign in to comment.