.config/fly.toml
fly.tomlhistorycomment on this file
| 1 | # fly.toml app configuration file for git-ents-hosted. |
| 2 | # |
| 3 | # See https://fly.io/docs/reference/configuration/ for information about how to use this file. |
| 4 | # |
| 5 | # `git-ents-server` (no `-c` needed, its own separate app) is the legacy |
| 6 | # pre-redo deployment, left alone. This app is the single-node hosted root |
| 7 | # (`roots.single-node-hosted`, phase 6), a dedicated app so its shared |
| 8 | # anycast proxy never round-robins traffic onto legacy's stopped machine. |
| 9 | |
| 10 | app = 'git-ents-server' |
| 11 | primary_region = 'iad' |
| 12 | |
| 13 | [build] |
| 14 | # The single-node hosted root (`roots.single-node-hosted`, phase 6): |
| 15 | # `git-ents` itself, served behind stock git's smart-HTTP transport. |
| 16 | dockerfile = "../Dockerfile" |
| 17 | |
| 18 | [env] |
| 19 | PORT = '8080' |
| 20 | # The canonical host sign-in challenges bind to (`roots.web-signin`); |
| 21 | # the entrypoint passes it to `git ents serve --hosted --public-host`. |
| 22 | PUBLIC_HOST = 'git.ents.cloud' |
| 23 | |
| 24 | [mounts] |
| 25 | source = 'git_ents_server' |
| 26 | destination = '/data' |
| 27 | |
| 28 | [http_service] |
| 29 | internal_port = 8080 |
| 30 | force_https = true |
| 31 | auto_stop_machines = 'stop' |
| 32 | auto_start_machines = true |
| 33 | min_machines_running = 0 |
| 34 | processes = ['app'] |
| 35 | |
| 36 | [[vm]] |
| 37 | cpu_kind = "shared" |
| 38 | memory = '512mb' |
| 39 | cpus = 1 |
| 40 | memory_mb = 512 |