1. Caddy version (caddy version
):
v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=
2. How I run Caddy:
I run caddy wih a reverse proxy, from a domain name example.duck.dns to Jellyfin on port 8096 on my local computer.
a. System environment:
Windows 10, 64 bits
b. Command:
caddy run
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
example.duckdns.org {
encode gzip
log {
output file C:\caddy\logs\jellyfin_access.log {
roll true # Rotate logs, enabled by default
roll_size_mb 5 # Set max size 5 MB
roll_gzip true # Whether to compress rolled files
roll_local_time true # Use localhost time
roll_keep 2 # Keep at most 2 log files
roll_keep_days 7 # Keep log files for 7 days
}
}
reverse_proxy localhost:8096
}
3. The problem I’m having:
Running Caddy seems ok (see terminal ouput below) but when going to example.duckdns.org, nothing loads. When doing a curl example.duckdns.org
I receive curl: (52) Empty reply from server
4. Error messages and/or full log output:
2020/07/23 08:15:54.913 e[34mINFOe[0m using adjacent Caddyfile 2020/07/23 08:15:54.916 e[34mINFOe[0m admin admin endpoint started {“address”: “tcp/localhost:2019”, “enforce_origin”: false, “origins”: [“localhost:2019”, “[::1]:2019”, “127.0.0.1:2019”]} 2020/07/23 08:15:54.917 e[34mINFOe[0m http server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {“server_name”: “srv0”, “https_port”: 443} 2020/07/23 08:15:54.917 e[34mINFOe[0m http enabling automatic HTTP->HTTPS redirects {“server_name”: “srv0”} 2020/07/23 08:15:54.929 e[34mINFOe[0m tls cleaned up storage units 2020/07/23 08:15:54.929 e[34mINFOe[0m http enabling automatic TLS certificate management {“domains”: [“example.duckdns.org”]} 2020/07/23 08:15:54.946 e[34mINFOe[0m autosaved config {“file”: “C:\Users\PA\AppData\Roaming\Caddy\autosave.json”} 2020/07/23 08:15:54.946 e[34mINFOe[0m serving initial configuration 2020/07/23 10:15:54 [INFO][cache:0xc0002a1f80] Started certificate maintenance routine
5. What I already tried:
Well I tried this with a local port and it works fine. Maybe it has something to do with my ISP ? However I took care of forwarding port 80 to 80 and port 443 to 443 in my router settings (NAT/PAT settings).
6. Links to relevant resources:
I followed this tutorial : Caddy | Documentation - Jellyfin Project