-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
39 lines (33 loc) · 1017 Bytes
/
Copy pathfly.toml
File metadata and controls
39 lines (33 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Fly.io config for the hosted report API. Rename `app` to your Fly app.
# Secrets (GHRA_GITHUB_TOKEN, GHRA_REDIS_URL, GHRA_CORS_ORIGINS) are set with
# `fly secrets set …`, NOT here. See DEPLOY.md.
app = "ghra-report-api"
primary_region = "iad"
[build]
dockerfile = "Dockerfile"
[env]
GHRA_REPORT_TTL_SECONDS = "3600"
GHRA_RATE_LIMIT = "20"
GHRA_RATE_WINDOW_SECONDS = "3600"
# Persisted on the mounted volume below (survives restarts/redeploys).
GHRA_WAITLIST_DB = "/data/waitlist.db"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = "suspend"
auto_start_machines = true
min_machines_running = 0
[[http_service.checks]]
interval = "30s"
timeout = "5s"
grace_period = "10s"
method = "GET"
path = "/api/health"
# Persistent volume for the SQLite waitlist. Create it once with:
# fly volumes create ghra_data --region iad --size 1
[mounts]
source = "ghra_data"
destination = "/data"
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"