-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
82 lines (68 loc) · 1.86 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
app = "pie-gd-mastodon-v2"
kill_timeout = 15
primary_region = "sea"
swap_size_mb = 4096
[build]
dockerfile = "apps/mastodon/Dockerfile"
[deploy]
strategy = "bluegreen"
# When it's necessary to run DB migrations before a deployment, uncomment the
# following line.
#
# Note that environment variables can't be set in this command, but if you
# need to set the `SKIP_POST_DEPLOYMENT_MIGRATIONS` env var you can
# temporarily add it to the `env` section below.
# release_command = "bundle exec rails db:migrate"
[env]
MAX_THREADS = "16"
MIN_THREADS = "5"
OVERMIND_NO_PORT = "true"
OVERMIND_SOCKET = "/tmp/overmind.sock"
OVERMIND_TIMEOUT = "10"
RAILS_LOG_LEVEL = "warn"
RAILS_LOG_TO_STDOUT = "true"
RAILS_SERVE_STATIC_FILES = ""
STATSD_ADDR = "localhost:9125"
WEB_CONCURRENCY = "0"
[processes]
mastodon = "overmind start --procfile Procfile.mastodon"
sidekiq = "overmind start --auto-restart sidekiq --procfile Procfile.sidekiq"
[[vm]]
size = "shared-cpu-1x"
memory = 512
[[vm]]
processes = ["sidekiq"]
size = "shared-cpu-1x"
memory = 1024
[[metrics]]
port = 9091
path = "/metrics"
processes = ["mastodon"]
[[services]]
internal_port = 8080 # Nginx listens on 8080 and proxies to Rails on port 3000 and Node on port 4000
processes = ["mastodon"]
protocol = "tcp"
auto_start_machines = true
auto_stop_machines = "suspend"
min_machines_running = 1
[services.concurrency]
hard_limit = 2000
soft_limit = 500
type = "requests"
[[services.http_checks]]
path = "/health"
grace_period = "15s"
interval = "10s"
timeout = "2s"
[[services.http_checks]]
path = "/api/v1/streaming/health"
grace_period = "15s"
interval = "10s"
timeout = "2s"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443