forgot about weechat relay

master
Paul Walko 2020-11-08 09:54:44 -05:00
parent fa04e757e6
commit d4158c6938
6 changed files with 7 additions and 98 deletions

View File

@ -1,3 +1,7 @@
## 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 { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
@ -16,10 +20,8 @@ server {
client_max_body_size 1M; client_max_body_size 1M;
# Purposefully do not proxy main site because there's no reason somone
# should be using this domain name
location / { location / {
return 301 https://example.com; return 404;
} }
# Proxy weechat # Proxy weechat
@ -30,10 +32,4 @@ server {
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_read_timeout 8h; proxy_read_timeout 8h;
} }
# Serve misc files
location /files {
alias /files-docker;
autoindex on;
}
} }

View File

@ -15,7 +15,7 @@ docker run \
--env TZ=US/Eastern \ --env TZ=US/Eastern \
--volume $PWD/nginx-config:/config:rw \ --volume $PWD/nginx-config:/config:rw \
--volume $PWD/nginx.conf:/config/nginx/nginx.conf:ro \ --volume $PWD/nginx.conf:/config/nginx/nginx.conf:ro \
--volume $PWD/site-confs:/config/nginx/site-confs:ro \ --volume $PWD/default:/config/nginx/default:ro \
--volume $HOME/files:/files-docker:ro \ --volume $HOME/files:/files-docker:ro \
--publish 51.159.29.122:80:80 \ --publish 51.159.29.122:80:80 \
--publish 51.159.29.122:443:443 \ --publish 51.159.29.122:443:443 \

View File

@ -56,8 +56,7 @@ http {
# Virtual Host Configs # Virtual Host Configs
## ##
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
include /config/nginx/site-confs/default; include /config/nginx/default;
include /config/nginx/site-confs/*.enabled;
} }
daemon off; daemon off;

View File

@ -1,29 +0,0 @@
## Based on version below; but heavily modified for LUUG
## Version 2018/09/12 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
# This is the main file that will be pe present no matter what
# Individual sites are specified in /config/nginx/sites/*.enabled
# Redirect unknown HTTP traffic to https://seaturtle.pw
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://seaturtle.pw;
}
# Redirect unknown HTTPS traffic to https://seaturtle.pw
# If we don't have a cert for the site the client get an error but that's fine
server {
listen 443 default_server;
listen [::]:443 default_server;
server_name _;
# ssl conf
include /config/nginx/ssl.conf;
return 301 https://seaturtle.pw;
}
# Enabled sites are included in /config/nginx/nginx.conf

View File

@ -1,23 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name paul.walko.org;
return 301 https://paul.walko.org$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name paul.walko.org;
# ssl conf
include /config/nginx/ssl.conf;
client_max_body_size 1M;
# Proxy main site
location / {
proxy_pass https://paulwalko.github.io;
}
}

View File

@ -1,34 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name walko.org www.walko.org;
return 301 https://walko.org$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.walko.org;
# ssl conf
include /config/nginx/ssl.conf;
return 301 https://walko.org$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name walko.org;
# ssl conf
include /config/nginx/ssl.conf;
client_max_body_size 1M;
# Proxy main site
location / {
proxy_pass https://paulwalko.github.io;
}
}