-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfly.toml
56 lines (47 loc) · 1.19 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
# Manually:
# $ flyctl volumes create tbrbot_data --region sjc --size 1
# $ flyctl scale count 1
# $ flyctl secrets set TS_AUTHKEY=... TBRBOT_APP_ID=... TBRBOT_APP_INSTALL=...
# $ flyctl secrets set TBRBOT_WEBHOOK_SECRET=...
# $ flyctl secrets set TBRBOT_APP_PRIVATE_KEY=- < pem
# $ flyctl ips allocate-v6
# $ flyctl ips allocate-v4
app = "example-tbrbot"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[build]
image = "registry.fly.io/ts-tbrbot:latest"
[env]
TBRBOT_APPNAME = "tbr-bot"
TBRBOT_BUGREPO = "private"
TBRBOT_ORG = "my-organization"
TBRBOT_REPOS = "private,opensource"
[experimental]
allowed_public_ports = []
auto_rollback = true
[mounts]
destination = "/root"
source = "tbrbot_data"
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"