2020-06-20 15:25:18 -07:00
|
|
|
#!/bin/bash
|
|
|
|
(r53) {
|
2020-07-02 07:45:37 -07:00
|
|
|
tls {
|
|
|
|
dns route53 {
|
|
|
|
max_retries 10
|
|
|
|
}
|
|
|
|
}
|
2020-06-20 15:25:18 -07:00
|
|
|
}
|
2020-07-02 07:45:37 -07:00
|
|
|
(errors) {
|
|
|
|
handle_errors {
|
|
|
|
rewrite * /{http.error.status_code}.html
|
|
|
|
file_server
|
|
|
|
}
|
2020-06-20 15:25:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|
|
|
|
}
|