I can't seem to get a reverse proxy for sonarr,radarr and unifi to work. I'd like to be able to reach them only from my LAN.
Here is my Caddyfile attempt at creating the reverse proxy. Are there settings other than enabling Settings/General/enable ssl for sonarr and radarr? I presume I would go to mydomain.cf/sonarr to access the sonarr app for example.
Here is my Caddyfile attempt at creating the reverse proxy. Are there settings other than enabling Settings/General/enable ssl for sonarr and radarr? I presume I would go to mydomain.cf/sonarr to access the sonarr app for example.
Code:
{
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
email mydomain@gmail.com
}
mydomain.cf {
@untrusted not remote_ip 192.168.5.0/24
root * /usr/local/www/html/
file_server @untrusted {
index restricted.html
}
file_server
reverse_proxy /unifi* 192.168.5.78:8443
reverse_proxy /sonarr* 192.168.5.71:8989
reverse_proxy /radarr* 192.168.5.73:9898
# header {
# enable HSTS
# Strict-Transport-Security max-age=31536000;
# }
}
cloud.mydomain.cf {
encode gzip
reverse_proxy http://192.168.5.81
header {
enable HSTS
Strict-Transport-Security max-age=31536000;
}
}
collabora.mydomain.cf {
encode gzip
@collabora {
path /loleaflet/* # Loleaflet is the client part of LibreOffice Online
path /hosting/discovery # WOPI discovery URL
path /hosting/capabilities # Show capabilities as json
path /lool/* # Main websocket, uploads/downloads, presentations
}
reverse_proxy @collabora http://192.168.5.89:9980
}