fixed caddy container and added acme

This commit is contained in:
2025-04-26 11:49:14 +02:00
parent fcc9fe0773
commit 8dbddaf62d
4 changed files with 31 additions and 7 deletions

View File

@@ -17,18 +17,28 @@ in {
config = mkIf cfg.enable {
services.podman.containers.caddy = {
image = "ghcr.io/iarekylew00t/caddy-cloudflare:latest";
image = "localhost/tboomers/caddy-custom:latest";
ports = [
"1080:80"
"1443:8443"
"1443:443"
];
volumes = [
"/home/deploy/containers/caddy/Caddyfile:/etc/caddy/Caddyfile:Z"
"%h/containers/caddy/Caddyfile:/etc/caddy/Caddyfile"
"%h/containers/caddy/acme_key:/etc/caddy/acme_key"
"%h/containers/caddy/data:/data"
];
};
home.file."containers/caddy/Caddyfile".text = ''
http://localhost {
{
acme_dns transip xeovalyte /etc/caddy/acme_key
}
tbmrs.nl {
respond "Hello there"
}
http://tbmrs.nl {
respond "Hello there"
}
'';