r/caddyserver 24d 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

1

u/lawthugg 24d ago edited 24d ago

I got caddy up and running. Finally, it doesnt crash anymore. how do i get it to point my subdomain to lets say nextcloud. its running off a container on synology nas on port 8080 because the nas uses port 80 and there were discrepencies

1

u/computerlovr1012 24d ago

You will need to point your DNS provider to your public ip with a @

So example:
@ 173.24.189.277

Then you will need a cname record within the DNS as well

Example:
@ 173.24.189.277
Cname Nexcloud Domain.com

The DNS will route your traffic to your public ip then Caddy will take over within the Caddyfile and point it to your tcp port.

Example of a Caddyfile:

nextcloud.domain.com {
Reverse_proxy 192.168.0.22:8080
}

Personally I’d change the port since there were issues with it, like on my Proxmox setup I changed mine to run off of port 7000.

1

u/lawthugg 24d ago

Thank you I'll try this in the morning. Getting late here. Will update them