29 lines
621 B
Plaintext
29 lines
621 B
Plaintext
|
#!/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
|
||
|
}
|
||
|
}
|