Files
zulip/servers/puppet/files/nginx/sites-available/humbug
Luke Faraone d0a5d7f7e2 Serve static content in /dist on app
(imported from commit b5850ee1f6c6663a27fee14f430f1fae7b690725)
2013-01-15 19:10:09 -05:00

40 lines
940 B
Plaintext

# Redirect http://app.humbughq.com and other unsupported
# hostnames to https://humbughq.com
#
# We don't have a redirect for HTTPS, however.
server {
listen 80 default_server;
server_name app.humbughq.com;
return 301 https://humbughq.com;
}
server {
listen 80;
server_name humbughq.com zephyr.humbughq.com;
return 301 https://$host$request_uri;
}
server {
listen 443;
ssl on;
# The zephyr.humbughq.com cert uses the app.humbughq.com key.
# It's good for https://humbughq.com too.
ssl_certificate /etc/ssl/certs/zephyr.humbughq.com.combined-chain.crt;
ssl_certificate_key /etc/ssl/private/app.humbughq.com.key;
server_name humbughq.com zephyr.humbughq.com;
# Avoid clickjacking attacks
add_header X-Frame-Options DENY;
# Downloadable software
location /dist/ {
autoindex on;
alias /srv/www/dist/;
}
include /etc/nginx/humbug-include/app;
}