mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 11:11:35 +00:00
fly auth docker && \
nix build .#image -L && \
docker load < result && \
docker tag git-pages:latest registry.fly.io/git-pages:latest && \
docker push registry.fly.io/git-pages:latest
50 lines
813 B
TOML
50 lines
813 B
TOML
# Requires secrets to be set:
|
|
# - S3_ENDPOINT
|
|
# - S3_ACCESS_KEY_ID
|
|
# - S3_SECRET_ACCESS_KEY
|
|
# - S3_BUCKET
|
|
# - GIT_PAGES_CONFIG
|
|
|
|
[build]
|
|
dockerfile = "Dockerfile"
|
|
# image = "registry.fly.io/git-pages-dev:latest"
|
|
|
|
[experimental]
|
|
cmd = ["supervisord"]
|
|
|
|
[[vm]]
|
|
cpu-type = "shared"
|
|
cpus = 2
|
|
memory = 512
|
|
|
|
[env]
|
|
AUTOMEMLIMIT = "0.25"
|
|
CADDY_ADMIN = ":2019"
|
|
|
|
[[files]]
|
|
guest_path = "/app/config.toml"
|
|
secret_name = "GIT_PAGES_CONFIG"
|
|
|
|
[[services]]
|
|
internal_port = 80
|
|
protocol = "tcp"
|
|
ports = [{ port = 80 }]
|
|
auto_stop_machines = "stop"
|
|
auto_start_machines = true
|
|
|
|
[[services]]
|
|
internal_port = 443
|
|
protocol = "tcp"
|
|
ports = [{ port = 443 }]
|
|
auto_stop_machines = "stop"
|
|
auto_start_machines = true
|
|
|
|
[checks.health]
|
|
type = "http"
|
|
method = "get"
|
|
port = 2002
|
|
path = "/"
|
|
grace_period = "10s"
|
|
interval = "10s"
|
|
timeout = "1s"
|