11 lines
485 B
Caddyfile

# Example 1: This will redirect requests to the below url to the internal address below - 10.0.10.21:3333
cyberchef.veritablevalor.com {
reverse_proxy 10.0.10.21:3333
}
# Example 2: This will do the same as above, but if the requester's IP address is outside of my LAN subnet, they will recieve a "Not Permitted" error 403.
home.veritablevalor.com {
reverse_proxy 10.0.10.21:5005
@blocked not remote_ip 10.0.0.0/8
respond @blocked "Not permitted" 403
}