-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathfly.toml
More file actions
52 lines (46 loc) · 1.26 KB
/
fly.toml
File metadata and controls
52 lines (46 loc) · 1.26 KB
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
# Fly.io – Password Pusher
# https://fly.io/docs/reference/configuration/
#
# First deploy:
# fly launch --no-deploy --dockerfile containers/docker/Dockerfile
# fly secrets set SECRET_KEY_BASE="$(bundle exec rails secret)" PWPUSH_MASTER_KEY="$(openssl rand -hex 32)"
# fly postgres create # or set DATABASE_URL
# fly deploy
#
# Web + worker in one machine: omit PWP__NO_WORKER (entrypoint runs foreman web+worker).
# Web only: fly secrets set PWP__NO_WORKER=1
app = "pwpush-replace-me"
primary_region = "iad"
[build]
dockerfile = "containers/docker/Dockerfile"
[env]
RAILS_ENV = "production"
RACK_ENV = "production"
RAILS_LOG_LEVEL = "info"
PWP__ALLOW_ANONYMOUS = "true"
PWP__DISABLE_SIGNUPS = "false"
PWP__DISABLE_LOGINS = "false"
PWP__ENABLE_FILE_PUSHES = "true"
PWP__ENABLE_URL_PUSHES = "true"
PWP__ENABLE_QR_PUSHES = "true"
PWP__ENABLE_USER_ACCOUNT_EMAILS = "false"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[vm]]
memory = "1gb"
cpu_kind = "shared"
cpus = 1
[checks]
[checks.http]
port = 8080
type = "http"
interval = "15s"
timeout = "5s"
grace_period = "30s"
method = "GET"
path = "/up"