add extra domains
parent
09d031c5f8
commit
15dc9f78b3
|
@ -10,7 +10,7 @@ docker run \
|
|||
--env URL=seaturtle.pw \
|
||||
--env ONLY_SUBDOMAINS=true \
|
||||
--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 TZ=US/Eastern \
|
||||
--volume $PWD/nginx-config:/config:rw \
|
||||
|
|
|
@ -16,6 +16,12 @@ server {
|
|||
|
||||
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
|
||||
location /syncthing/ {
|
||||
auth_basic "not today buddy";
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue