Aggressively optimise size of Nix built Docker images

This commit is contained in:
bin
2025-09-19 04:23:57 +00:00
committed by Catherine
parent 5f3edfedf9
commit da212dcb89
6 changed files with 58 additions and 43 deletions
+67
View File
@@ -0,0 +1,67 @@
{
persist_config off
log {
output stderr
exclude admin.api
format console {
time_key ""
}
}
metrics {
per_host
}
storage s3 {
host "{$S3_ENDPOINT}"
access_id "{$S3_ACCESS_KEY_ID}"
secret_key "{$S3_SECRET_ACCESS_KEY}"
bucket "{$S3_BUCKET}"
prefix "ssl"
}
email {env.ACME_EMAIL}
auto_https disable_redirects
on_demand_tls {
permission http http://{$GIT_PAGES_ADDRESS:localhost}:3001
}
servers :80 {
name http
protocols h1 h2c
}
servers :443 {
name https
protocols h1 h2
}
servers :2002 {
name health
protocols h1
}
}
http:// {
@get method GET
redir @get https://{host}{uri} 301
# initial PUT/POST for a new domain has to happen over HTTP
reverse_proxy http://{$GIT_PAGES_ADDRESS:localhost}:3000
}
https:// {
tls {
on_demand
}
encode
reverse_proxy http://{$GIT_PAGES_ADDRESS:localhost}:3000
}
http://localhost:2002 {
reverse_proxy http://{$GIT_PAGES_ADDRESS:localhost}:3002
}
+11
View File
@@ -0,0 +1,11 @@
[program-default]
stderr_logfile = /dev/stderr
stopsignal = TERM
autorestart = true
[program:pages]
command = /bin/git-pages
[program:caddy]
command = /bin/caddy run
depends_on = pages