mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 03:01:48 +00:00
It is expected that in most deployments, a reverse proxy server like Caddy or Nginx will be connecting to Caddy; listening on any address by default is a privacy and security concern.
30 lines
458 B
Caddyfile
30 lines
458 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
|
|
}
|
|
|
|
reverse_proxy http://localhost:3000
|
|
}
|