-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfly.toml
85 lines (72 loc) · 1.9 KB
/
fly.toml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# fly.toml app configuration file generated for picturepro-mono on 2024-02-23T15:08:05-06:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "picturepro-mono"
primary_region = "dfw"
kill_signal = "SIGINT"
kill_timeout = "5s"
[processes]
app = "site-server"
surreal = "surreal start --log=info --auth --bind '[::]':8000 file:/data/srdb.db"
[[vm]]
size = "shared-cpu-2x"
memory = "512MB"
processes = ["app"]
[[vm]]
size = "shared-cpu-1x"
memory = "512MB"
processes = ["surreal"]
[env]
SURREAL_WS_URL = "picturepro-mono.internal:8000"
# these are fine in plain text because surreal is not exposed
SURREAL_USER = "root"
SURREAL_PASS = "pass"
# these MUST be set with secrets
# AWS_ACCESS_KEY_ID =
# AWS_SECRET_ACCESS_KEY =
# AWS_DEFAULT_REGION =
APP_BASE_URL = "https://picturepro-mono.fly.dev"
LEPTOS_OUTPUT_NAME = "site"
LEPTOS_SITE_ROOT = "site"
LEPTOS_SITE_PKG_DIR = "pkg"
LEPTOS_SITE_ADDR = "0.0.0.0:3000"
LEPTOS_RELOAD_PORT = "3001"
LEPTOS_ENV = "PROD"
LEPTOS_HASH_FILES = true
# `/tmp` can't be writte to in fly, reason unknown.
TMPDIR = "/"
[[mounts]]
source = "surreal_data"
destination = "/data"
initial_size = "1gb"
processes = ["surreal"]
auto_extend_size_threshold = 80
auto_extend_size_increment = "1gb"
auto_extend_size_limit = "5gb"
[http_service]
internal_port = 3000
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[http_service.concurrency]
type = "requests"
hard_limit = 250
soft_limit = 200
[[http_service.checks]]
interval = "30s"
timeout = "5s"
grace_period = "10s"
method = "GET"
path = "/"
[checks]
[checks.surreal_check]
processes = ["surreal"]
grace_period = "30s"
interval = "15s"
method = "get"
path = "/status"
port = 8000
timeout = "10s"
type = "http"