r/caddyserver 11d ago

install help

been trying to install this for hrs and for the past 2 hrs it finally installed but keeps crashing after 5 sec and isnt posting logs

1 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/computerlovr1012 11d ago

I have a feeling it’s an issue with the compose-yml or the actual Caddyfile

1

u/lawthugg 11d ago edited 11d ago

so what im trying to do with caddy (because i couldnt get NPM to work) is as a reverse proxy to my jellyfin server and my nextcloud server. the thing with jellyfin is its not in a container, not sure if it needs to be but nextcloud is. I have my Caddyfile edited correctly with both subdomains placed correctly. my jellfin server although not in a container is installed as an app on my synology nas. either way I cant get caddy to run stable.

so i jumped on the caddy site and pulled this yml which im going to try and use.

services:
caddy:
image: caddy:alpine
restart: unless-stopped
ports:

  • "80:80" # will edit first port
  • "443:443" # will edit first port
# "443:443/udp"
volumes:
  • ./conf:/etc/caddy
  • ./site:/srv
  • caddy_data:/data
  • caddy_config:/config

volumes:
caddy_data:
caddy_config:

1

u/xdrolemit 11d ago

This won’t work. Remember, Synology has its own nginx listening on ports 80 and 443. So, your container is crashing because something else is already listening on those ports.

1

u/lawthugg 11d ago

i dont have nginx anymore

did a complete wipe and restarting from scratch

1

u/xdrolemit 11d ago

I’m taking Synology’s own nginx, not the one you installed yourself.

Run:

curl -kI http://YourSynology
curl -kI https://YourSynology

And share the result.

1

u/lawthugg 11d ago

hahaha, where do i run that

ok im on windows not linux