make sepearte lights.conf for both networks

giskard
David Kebler 2020-06-20 15:25:18 -07:00
parent efcb038f9e
commit 5b4b2c6387
3 changed files with 56 additions and 16 deletions

28
conf/238lights.conf Normal file
View File

@ -0,0 +1,28 @@
#!/bin/bash
(r53) {
tls {
dns lego_deprecated route53
}
}
# Main http/https redirect for anything arriving on port 80/http
*.kebler.net:80 {
redir https://{label1}.kebler.net{uri}
}
# Dev Lights Frontend Server
https://dev.lights.kebler.net https://dev.lights.238.kebler.net {
import r53
reverse_proxy http://lights.net:8080
}
https://lights.kebler.net https://lights.238.kebler.net {
import r53
root * /opt/lights/web
handle /socket.io/* {
reverse_proxy http://lights.net:3030
}
handle {
try_files {path} {path}/ /index.html
file_server
}
}

28
conf/645lights.conf Normal file
View File

@ -0,0 +1,28 @@
#!/bin/bash
(r53) {
tls {
dns lego_deprecated route53
}
}
# Main http/https redirect for anything arriving on port 80/http
*.kebler.net:80 {
redir https://{label1}.kebler.net{uri}
}
# Dev Lights Frontend Server
https://dev.lights.kebler.net https://dev.lights.645.kebler.net {
import r53
reverse_proxy http://lights.net:8080
}
https://lights.kebler.net https://lights.645.kebler.net {
import r53
root * /opt/lights/web
handle /socket.io/* {
reverse_proxy http://lights.net:3030
}
handle {
try_files {path} {path}/ /index.html
file_server
}
}

View File

@ -1,16 +0,0 @@
#!/bin/bash
(r53) {
tls {
dns lego_deprecated route53
}
}
# Main http/https redirect for anything arriving on port 80/http
*.kebler.net:80 {
redir https://{label1}.kebler.net{uri}
}
# Git Server
https://dev.lights.kebler.net, https://dev.lights.238.kebler.net {
import r53
reverse_proxy http://lights.kebler.net:8080
}