add extra domains

master
Paul Walko 2020-01-17 02:14:03 +01:00
parent 09d031c5f8
commit 15dc9f78b3
4 changed files with 64 additions and 1 deletions

View File

@ -10,7 +10,7 @@ docker run \
--env URL=seaturtle.pw \ --env URL=seaturtle.pw \
--env ONLY_SUBDOMAINS=true \ --env ONLY_SUBDOMAINS=true \
--env SUBDOMAINS=madone \ --env SUBDOMAINS=madone \
--env EXTRA_DOMAINS=paul.walko.org,walko.org \ --env EXTRA_DOMAINS=paul.walko.org,paul.walko.org,walko.org,www.walko.org \
--env VALIDATION=html \ --env VALIDATION=html \
--env TZ=US/Eastern \ --env TZ=US/Eastern \
--volume $PWD/nginx-config:/config:rw \ --volume $PWD/nginx-config:/config:rw \

View File

@ -16,6 +16,12 @@ 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 / {
return 301 https://example.com;
}
# Proxy syncthing # Proxy syncthing
location /syncthing/ { location /syncthing/ {
auth_basic "not today buddy"; auth_basic "not today buddy";

View File

@ -0,0 +1,23 @@
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

@ -0,0 +1,34 @@
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;
}
}