1. Caddy version (caddy version
):
v2
2. How I run Caddy:
sudo caddy start
a. System environment:
4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
No docker.
b. Command:
sudo caddy start
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
jellycloud.netlib.re {
encode gzip
log {
output file /home/jellycloud/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
}
# Edit 05/06/20 Remove Empty Brackets, Change logging format, and added Email portion. Commented out email portion for now
# Edit 05/07/20 Removed Email portion. Adding an optional part in the guide for it.
3. The problem I’m having:
The only way I can get caddy to work is by running:
sudo caddy start
It doesn’t start automatically at boot, which is what I need it to do. I have tried putting this command in /etc/rc.local, but it does not work. I have done all kinds of things, following all kinds of blogs and documentation trying to install configure and run caddy. I couldn’t possibly remember all the details at this point! I was just kind of flailing about, and eventually it worked: I got a certificate, and I can access my jellyfin server over https at the main url. But the ONLY way it works is if I type sudo caddy start.
4. Error messages and/or full log output:
I’m not sure what’s expected here. Caddy starts when I tell it to, but doesn’t seem to work or work right after reboot.
5. What I already tried:
I have done all kinds of things, following all kinds of blogs and documentation trying to install configure and run caddy. I couldn’t possibly remember all the details at this point! I was just kind of flailing about, and eventually it worked: I got a certificate, and I can access my jellyfin server over https at the main url. But the ONLY way it works is if I type sudo caddy start.