make sepearte lights.conf for both networks
parent
efcb038f9e
commit
5b4b2c6387
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
|
||||||
}
|
|
Loading…
Reference in New Issue