Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

670 B
Raw Blame
# https://fly.io/docs/reference/configuration/

app = 'papra-server'
primary_region = 'cdg'
kill_timeout = 10 # seconds

[build]
dockerfile = "./Dockerfile"

[deploy]
release_command = "pnpm --silent migrate:up:prod"
strategy = "canary"

[processes]
web = "env PROCESS_MODE=web pnpm --silent start"
worker = "env PROCESS_MODE=worker pnpm --silent start"

[http_service]
internal_port = 1221
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 1
processes = ['web']

[checks]

[checks.http]
type = "http"
method = "get"
path = "/api/health"
port = 1221
interval = "15s"
grace_period = "20s"
timeout = "3s"
processes = ["web"]