-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
41 lines (35 loc) · 999 Bytes
/
Copy pathfly.toml
File metadata and controls
41 lines (35 loc) · 999 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
40
41
# Fly.io app configuration for PaintCRM.
# Deploy with: fly deploy (from the repo root)
# One-time setup:
# fly launch --no-deploy --copy-config # or `fly apps create paintcrm`
# fly postgres create --name paintcrm-db && fly postgres attach paintcrm-db
# fly secrets set JWT_SECRET="$(openssl rand -hex 32)" DB_SSL=false
app = "paintcrm"
primary_region = "iad"
[build]
dockerfile = "server/Dockerfile"
[env]
NODE_ENV = "production"
PORT = "3001"
# Fly Postgres is reached over the private 6PN network without TLS.
DB_SSL = "false"
[http_service]
internal_port = 3001
force_https = true
auto_stop_machines = "suspend"
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
[http_service.concurrency]
type = "requests"
hard_limit = 250
soft_limit = 200
[[http_service.checks]]
interval = "30s"
timeout = "5s"
grace_period = "20s"
method = "GET"
path = "/api/health"
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"