vps/newinfra/nix/modules/ingress/base.Caddyfile
Noratrieb 5b2ca88597 high availability caddy
this was a fucking nightmare.
setting up the s3 storage plugin was painful, since caddy plugins are not nicely supported by the nix build yet.
rip.
oh well, i got it working.

and it WORKS
2024-08-06 22:12:16 +02:00

17 lines
300 B
Caddyfile

{
email noratrieb@proton.me
auto_https disable_redirects
storage s3 {
host "localhost:3900"
bucket "caddy-store"
# access_id ENV S3_ACCESS_ID
# secret_key ENV S3_SECRET_KEY
insecure true
}
}
http:// {
respond "This is an HTTPS-only server, silly you. Go to https:// instead." 418
}