scripts/madone/docker/nginx/site-confs/madone.seaturtle.pw.enabled

40 lines
854 B
Plaintext
Raw Normal View History

2019-09-01 21:37:44 -04:00
server {
listen 80;
listen [::]:80;
server_name madone.seaturtle.pw;
return 301 https://madone.seaturtle.pw$request_uri;
2019-09-01 21:37:44 -04:00
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name madone.seaturtle.pw;
# ssl conf
include /config/nginx/ssl.conf;
client_max_body_size 1M;
2020-01-16 20:14:03 -05:00
# Purposefully do not proxy main site because there's no reason somone
# should be using this domain name
location / {
return 301 https://example.com;
}
2019-09-01 21:37:44 -04:00
# Proxy weechat
location /weechat {
proxy_pass http://172.17.0.1:9001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 8h;
}
# Serve misc files
location /files {
alias /files-docker;
autoindex on;
}
}