generated from fun-stack/example
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfly.toml
63 lines (50 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
57
58
59
60
61
62
# fly.toml file generated for social-protocols-news on 2022-09-14T17:00:08+02:00
app = "social-protocols-news"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
primary_region = "ewr"
[build]
builder = "paketobuildpacks/builder:base"
buildpacks = ["gcr.io/paketo-buildpacks/go"]
[env]
PORT = "8080"
SQLITE_DATA_DIR="/data"
LOG_LEVEL="DEBUG"
CACHE_SIZE="100"
R2_BUCKET="news-archive"
R2_USE_SSL="true"
R2_ENDPOINT="https://9e2da4e2b5c6dd05d36f399d4afc7d4c.r2.cloudflarestorage.com"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[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"
# flyctl volumes create data --region ewr --size 3
[[mounts]]
source = "data3"
destination = "/data"
# prometheus metrics
[metrics]
port = 9091
path = "/metrics"