<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[I have a domain at simply.com with a few services running on a server at home.]]></title><description><![CDATA[<p>I have a domain at simply.com with a few services running on a server at home.</p><p>Previously I used Caddy with subdomains registered with my hosting provider's DNS panel, and ports 80 and 443 opened to the public internet. Anybody could access my services from the outside.</p><p>I've now changed to using WireGuard and a custom build of Caddy with a wildcard certificate for my domain. Pi-hole handles DNS for subdomains, e.g. cloud.example.com for Nextcloud.</p><p>I'm using podman system quadlets for Pi-hole and Caddy (both use privileged ports), and podman secrets for sensitive data. </p><p>In /etc/containers/systemd/caddy, I have 3 files:</p><p>Containerfile<br />--------------------<br />FROM docker.io/caddy:builder AS builder</p><p>RUN xcaddy build --with github.com/caddy-dns/simplydotcom</p><p>FROM docker.io/caddy:latest</p><p>COPY --from=builder /usr/bin/caddy /usr/bin/caddy<br />--------------------</p><p>caddy.build<br />------------------<br />[Build]<br />ImageTag=localhost/caddy<br />SetWorkingDirectory=unit<br />------------------</p><p>caddy.container<br />-------------------------<br />[Unit]<br />Description=Caddy container<br />After=network-online.target</p><p>[Container]<br />AutoUpdate=registry<br />ContainerName=caddy<br />Image=caddy.build<br />Secret=simply_account_name,type=env,target=SIMPLY_ACCOUNT_NAME<br />Secret=simply_api_key,type=env,target=SIMPLY_API_KEY<br />Volume=/srv/containers/caddy/conf:/etc/caddy:Z<br />Volume=/srv/containers/caddy/data:/data:Z<br />PublishPort=443:443</p><p>[Install]<br />WantedBy=default.target<br />-------------------------</p><p>The Caddyfile is stored in  /srv/containers/caddy/conf/:</p><p>Caddyfile<br />---------------<br />*.example.com {<br />        tls {<br />                dns simplydotcom {env.SIMPLY_ACCOUNT_NAME} {env.SIMPLY_API_KEY}<br />        }</p><p>        @caddy host caddy.example.com<br />        handle @caddy {<br />                respond "Hello World!"<br />        }<br />}<br />---------------</p><p>See Caddy documentation for more on wildcard certificates.</p><p><a href="https://caddyserver.com/docs/caddyfile/patterns#wildcard-certificates" rel="nofollow noopener"><span>https://</span><span>caddyserver.com/docs/caddyfile</span><span>/patterns#wildcard-certificates</span></a></p><p>EDIT: changed TOKEN to KEY in Caddyfile</p><p><a href="https://mastodon.bsd.cafe/tags/selfhosting" rel="tag">#<span>selfhosting</span></a>  <a href="https://mastodon.bsd.cafe/tags/homelab" rel="tag">#<span>homelab</span></a>  <a href="https://mastodon.bsd.cafe/tags/podman" rel="tag">#<span>podman</span></a> <a href="https://mastodon.bsd.cafe/tags/caddy" rel="tag">#<span>caddy</span></a></p>]]></description><link>https://forum.fedi.dk/topic/24905819-647d-462a-9a82-a5917cf438f0/i-have-a-domain-at-simply.com-with-a-few-services-running-on-a-server-at-home.</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 10:42:26 GMT</lastBuildDate><atom:link href="https://forum.fedi.dk/topic/24905819-647d-462a-9a82-a5917cf438f0.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Apr 2026 19:26:10 GMT</pubDate><ttl>60</ttl></channel></rss>