-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
fly.toml
61 lines (52 loc) · 1.59 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
# fly.toml app configuration file generated for splashcat on 2023-06-12T20:53:52-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "splashcat"
primary_region = "iad"
console_command = "/code/manage.py shell"
swap_size_mb = 8192
[deploy]
release_command = "python manage.py migrate"
strategy = "bluegreen"
[env]
PORT = "8080"
DJANGO_ALLOWED_HOSTS = "splashcat.fly.dev,splashcat.ink,splashcat.internal,splashcat.flycast"
DEBUG = "False"
SENTRY_DSN = "https://9babb5ac79274bed8e3c56a222b44ab6@o4505055559352320.ingest.sentry.io/4505055561449472"
BUNNY_VIDEO_LIBRARY_ID = "140045"
FLY_API_HOSTNAME = "http://_api.internal:4280"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
#[[http_service.checks]]
#grace_period = "5s"
#interval = "5s"
#method = "get"
#path = "/"
#protocol = "http"
#restart_limit = 5
#timeout = "5s"
#tls_skip_verify = false
[[http_service.checks]]
grace_period = "5s"
interval = "5s"
method = "get"
path = "/health-check/"
protocol = "http"
restart_limit = 5
timeout = "5s"
tls_skip_verify = false
[[statics]]
guest_path = "/code/staticfiles"
url_prefix = "/static/"
[[statics]]
guest_path = "/code/battles/format_schemas"
url_prefix = "/battles/api/schemas/"
[processes]
app = "daphne -b :: -p 8080 --proxy-headers --proxy-headers-host Fly-Client-IP --proxy-headers-port Fly-Forwarded-Port splashcat.asgi:application"
celery-worker = "celery -A splashcat worker -l DEBUG -B -P solo --without-gossip --without-mingle --without-heartbeat"