scripts/madone/docker/nginx/default

36 lines
811 B
Plaintext

## Based on version below; heavily modified for me
## Version 2018/09/12 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
# Redirect HTTPS to HTTP
server {
listen 80;
listen [::]:80;
server_name madone.seaturtle.pw;
return 301 https://madone.seaturtle.pw$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name madone.seaturtle.pw;
# ssl conf
include /config/nginx/ssl.conf;
client_max_body_size 1M;
location / {
return 404;
}
# 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;
}
}