#!/bin/bash (r53) { tls { dns route53 { max_retries 10 } } } (errors) { handle_errors { rewrite * /{http.error.status_code}.html file_server } } # 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 } }