1. Caddy version (caddy version
):
Caddy v1.0.4 (h1:wwuGSkUHo6RZ3oMpeTt7J09WBB87X5o+IZN4dKehcQE=)
2. How I run Caddy:
a. System environment:
Windows 10 as a service
b. Command:
c:\caddy\caddy.exe -conf=c:\caddy\caddyfile -log=c:\caddy\logs\access.log
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
(mycommon)
{
ext .html .htm .php
root /caddy/www # Change path & syntax for your OS or your preferred location!
gzip
header / {
X-Content-Type-Options nosniff
X-XSS-Protection "1; mode=block"
Strict-Transport-Security "max-age=31536000;"
}
}
(mylocations)
{
proxy /sabnzb 127.0.0.1:8080 { # https://sabnzbd.org/
transparent
}
proxy /sonarr 127.0.0.1:8989 { # https://sonarr.tv/
transparent
}
proxy /sonarr4k 127.0.0.1:8990 { # https://sonarr.tv/
transparent
}
proxy /nzbhydra 127.0.0.1:5076 { # https://github.com/theotherp/nzbhydra
transparent
header_upstream X-Forwarded-Host {host}
}
rewrite / {
#Rewrite URLs without trailing slash
regexp ^/nzbhydra$
to /nzbhydra/
}
proxy /radarr 127.0.0.1:7878 { # https://github.com/Radarr/Radarr
transparent
}
proxy /radarr4k 127.0.0.1:7879 { # https://github.com/Radarr/Radarr
transparent
}
redir 301 {
if {>referer} is https://mydomain.org/bi
if {path} not_has bi/
/ /bi/{path}
}
proxy /bi 127.0.0.1:10882 {
without /bi
}
proxy / 127.0.0.1:9091 {
header_upstream X-Forwarded-Host {host}:9091
header_upstream -Origin
header_upstream -Referer
}
}
####################################################################################
# web domain server block
####################################################################################
https://mydomain.org:989
{
tls {
dns cloudflare
}
# New log directive syntax for v0.10.x
log /caddy/logs/access.log { # Change path syntax for your OS or your preferred location!
rotate_size 1 # Rotate after 1 MB
rotate_age 7 # Keep log files for 7 days
rotate_keep 2 # Keep at most 2 log files
}
errors visible
errors /caddy/logs/error.log { # Change path syntax for your OS or your preferred location!
rotate_size 1 # Set max size 1 MB
rotate_age 7 # Keep log files for 7 days
rotate_keep 2 # Keep at most 2 log files
}
import mycommon # Import code snippet 1 defined above
import mylocations # Import code snippet 2 defined above
}
localhost:990 192.168.1.100:990
{
log /caddy/logs/access.log { # Change path syntax for your OS or your preferred location!
rotate_size 1 # Rotate after 1 MB
rotate_age 7 # Keep log files for 7 days
rotate_keep 2 # Keep at most 2 log files
}
errors /caddy/logs/error.log { # Change path syntax for your OS or your preferred location!
rotate_size 1 # Set max size 1 MB
rotate_age 7 # Keep log files for 7 days
rotate_keep 2 # Keep at most 2 log files
}
import mycommon # Import code snippet 1 defined above
import mylocations # Import code snippet 2 defined above
}
3. The problem I’m having:
Radarr, a program that I’m using is not working properly. According to their wiki, when people are running a reverse proxy, they need to add some things to make it work.
https://wiki.servarr.com/Radarr_System#could_not_connect_to_signalr
Specifically, they say when using nginx, to add the following:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
4. Error messages and/or full log output:
Chrome console error is here. I don’t see anything in the caddy logs, but not sure if I should be?
5. What I already tried:
I tried asking in their support discord server, but nobody appears to know. They asked me to ask Caddy people for help and update their wiki page