mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-17 12:41:38 +00:00
The grebedoc.dev infrastructure is no longer directly tied to the container built from this repository, so we don't have to pollute the configuration with Fly.io-isms.
36 lines
675 B
Caddyfile
36 lines
675 B
Caddyfile
{
|
|
storage s3 {
|
|
host "{env.PAGES_STORAGE_S3_ENDPOINT}"
|
|
access_id "{env.PAGES_STORAGE_S3_ACCESS_KEY_ID}"
|
|
secret_key "{env.PAGES_STORAGE_S3_SECRET_ACCESS_KEY}"
|
|
bucket "{env.PAGES_STORAGE_S3_BUCKET}"
|
|
prefix "ssl"
|
|
}
|
|
|
|
admin off
|
|
|
|
persist_config off
|
|
|
|
email {env.ACME_EMAIL}
|
|
|
|
auto_https disable_redirects
|
|
|
|
on_demand_tls {
|
|
permission http http://localhost:3001
|
|
}
|
|
}
|
|
|
|
https://, http:// {
|
|
tls {
|
|
on_demand
|
|
}
|
|
|
|
# initial PUT/POST for a new domain has to happen over HTTP
|
|
@upgrade `method('GET') && protocol('http')`
|
|
redir @upgrade https://{host}{uri} 301
|
|
|
|
reverse_proxy http://localhost:3000
|
|
header Alt-Svc `h3=":443"; persist=1, h2=":443"; persist=1`
|
|
encode
|
|
}
|