1. Caddy version (caddy version 2.3
):
2. How I run Caddy:
I run Caddy as a reverse proxy as a windows service via NSSM. The location is C:/Caddy and uses a Caddyfile
a. System environment:
I use windows 10 home natively running Caddy
b. Command:
Caddy run
or NSSM
NSSM start Caddy
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
techflix.duckdns.org {
encode gzip
log {
output file C:\caddy\logs\emby_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:
The site is inaccessible on host device and on other devices shows as 403: Forbidden. Even though I specified it to store logs, there were no logs present
In windows services Caddy shows up as paused, attempts to resume go unanswered
4. Error messages and/or full log output:
2021/01/06 13:01:53.708 ←[34mINFO←[0m using adjacent Caddyfile
2021/01/06 13:01:53.727 ←[34mINFO←[0m admin admin endpoint started {"address": "tcp/localhost:2019", "enforce_origin": false, "origins": ["[::1]:2019", "127.0.0.1:2019", "localhost:2019"]}
2021/01/06 13:01:53.731 ←[34mINFO←[0m tls.cache.maintenance started background certificate maintenance {"cache": "0xc00030b9d0"}
2021/01/06 13:01:53.731 ←[34mINFO←[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}
2021/01/06 13:01:53.731 ←[34mINFO←[0m http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
2021/01/06 13:01:53.734 ←[34mINFO←[0m tls cleaned up storage units
run: loading initial config: loading new config: http app module: start: tcp: listening on :80: listen tcp :80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
5. What I already tried:
Resuming service
Port forwarding is all good
Firewall exempt looks good
Cleared app data
cache
6. Links to relevant resources:
The guide I used: https://www.reddit.com/r/jellyfin/comments/hotycl/windows_and_caddy_v2_reverse_proxy_guide/