mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-15 17:15:14 +01:00
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
17 lines
300 B
Caddyfile
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
|
|
}
|