2020-11-08 09:54:44 -05:00
|
|
|
## Based on version below; heavily modified for me
|
|
|
|
## Version 2018/09/12 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
|
|
|
|
|
2021-05-25 23:18:24 -04:00
|
|
|
|
|
|
|
### madone ###
|
2020-11-08 09:54:44 -05:00
|
|
|
# Redirect HTTPS to HTTP
|
2020-11-08 09:42:29 -05:00
|
|
|
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 / {
|
2020-11-08 09:54:44 -05:00
|
|
|
return 404;
|
2020-11-08 09:42:29 -05: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;
|
|
|
|
}
|
|
|
|
}
|
2021-05-25 23:18:24 -04:00
|
|
|
|
|
|
|
### uptime ###
|
|
|
|
# Redirect HTTPS to HTTP
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name uptime.seaturtle.pw;
|
|
|
|
|
|
|
|
return 301 https://uptime.seaturtle.pw$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Reference: https://gist.github.com/CodeCrafter912/4305d5a1873e2a220e7da848b87be937
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
listen [::]:443 ssl;
|
|
|
|
server_name uptime.seaturtle.pw;
|
|
|
|
|
|
|
|
set $monitorId zx0Y5uROBD;
|
|
|
|
|
|
|
|
# ssl conf
|
|
|
|
include /config/nginx/ssl.conf;
|
|
|
|
|
|
|
|
client_max_body_size 1M;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header Host "stats.uptimerobot.com";
|
|
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
proxy_pass_request_headers on;
|
|
|
|
proxy_pass https://stats.uptimerobot.com/;
|
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
|
|
|
rewrite ^\/([0-9]+) /$monitorId/$1 break;
|
|
|
|
rewrite ^\/$ /$monitorId break;
|
|
|
|
|
|
|
|
sub_filter_once off;
|
|
|
|
sub_filter_types text/html;
|
|
|
|
sub_filter "stats.uptimerobot.com" "$host";
|
|
|
|
sub_filter "https://stats.uptimerobot.com/$monitorId" "https://$host";
|
|
|
|
}
|
|
|
|
}
|