mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-08-19 10:26:03 +00:00
Aggressively optimise size of Nix built Docker images
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user