1. The problem I’m having:
I have a problem of not able to access my jellyfin server with caddy and duckdns outside home network.
I installed jellyfin (docker), using port 8096 (http) and 8920 (https). I created some domains in duckdns and points towards my router’s public ip address (81.111.226.115). I have forwardded 8123, 80, 443, 8096, 8920, etc in router to my home server ip addresses.
Now, the pradeeshserver.duckdns.org
is working within home network but not from outside
These are the steps:
- Register a domain in duckdns.org. say myjellyfin.duckdns.org points to my public ip
- Install jellyfin docker and run it. (8096 and 8920 for http/s respectively) localhost:port works fine
- Install Caddy. create Caddyfile with this content:
pradeeshserver.duckdns.org
reverse_proxy 127.0.0.1:8096
- using browser, jellyfin clients, check if
https://pradeeshserver.duckdns.org
works. It works, in internal/home network - Disconnected mobile from home network and tried to open
https://pradeeshserver.duckdns.org
. It doesnt work.
2. Error messages and/or full log output:
Page does not open in external network.
3. Caddy version:
v2.7.5
4. How I installed and ran Caddy:
I installed caddy
with apt
package manager. I installed xcaddy
using binary and used
xcaddy build --with github.com/caddy-dns/duckdns
to install duckdns module
I ran caddy using
sudo caddy start --config ./Caddyfile
Caddyfile location is correct
a. System environment:
b. Command:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
pradeeshserver.duckdns.org
reverse_proxy 127.0.0.1:8096