intent/fly.toml

35 lines
761 B
TOML
Raw Permalink Normal View History

# App name and region are placeholders until the Fly app is created.
app = "intent-CHANGEME"
primary_region = "CHANGEME"
[build]
build-target = "prod"
[env]
DJANGO_SETTINGS_MODULE = "config.settings.prod"
DJANGO_ALLOWED_HOSTS = "intent-CHANGEME.fly.dev"
INTENT_DATA_DIR = "/data"
# One machine, one volume: SQLite lives here and Litestream replicates it to B2.
[mounts]
source = "intent_data"
destination = "/data"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
[[http_service.checks]]
method = "GET"
path = "/healthz"
interval = "30s"
timeout = "5s"
grace_period = "20s"
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"