caddy-retired/conf/nadal.conf

54 lines
1.2 KiB
Bash

#!/bin/bash
# ABSOLUTELY DON'T MESS WITH THIS FILE IF YOU DON'T KNOW WHAT YOU ARE DOING
# Caddy Server Configuration for Nadal Server
# After making changes from terminal
# sdr caddy@nadal
# make sure there are now errors with
# sdjuf caddy@nadal
(r53) {
tls {
dns route53 {
max_retries 10
}
}
}
(errors) {
handle_errors {
rewrite * /{http.error.status_code}.html
file_server
}
}
# Git Server
https://git.kebler.net, https://git.645.kebler.net {
import r53
reverse_proxy http://nas.kebler.net:3000
}
# Home Assistant Server
https://ha.kebler.net, https://ha.645.kebler.net {
import r53
reverse_proxy /* hassio.kebler.net:8123
}
https://gateway.kebler.net, https://gateway.645.kebler.net {
import r53
reverse_proxy /* router.kebler.net:8080
}
https://docker.kebler.net, https://docker.645.kebler.net {
import r53
reverse_proxy /* http://nadal.kebler.net:9000
}
https://power.kebler.net, https://power.645.kebler.net {
import r53
reverse_proxy /* http://192.168.0.10:8081
}
# Temp Lights Frontend Server (using dev)
https://lights.645.kebler.net https://lights.kebler.net {
import r53
reverse_proxy http://nadal.kebler.net:8080
}