Modified caddy to make a simple working code

This commit is contained in:
2025-04-25 21:09:55 +02:00
parent 7a0797bcd8
commit fcc9fe0773
3 changed files with 36 additions and 5 deletions

View File

@@ -23,14 +23,14 @@ in {
"1443:8443"
];
volumes = [
"~/containers/caddy/Caddyfile:/etc/caddy/Caddyfile"
"/home/deploy/containers/caddy/Caddyfile:/etc/caddy/Caddyfile:Z"
];
};
home.file."containers/caddy/Caddyfile".text = ''
localhost
response "Hello, world!"
http://localhost {
respond "Hello there"
}
'';
};
}