Skip to content

Instantly share code, notes, and snippets.

@rphlmr
Created April 7, 2024 16:20
Show Gist options
  • Save rphlmr/cf0b480634ac1945b05a9576dd8804c9 to your computer and use it in GitHub Desktop.
Save rphlmr/cf0b480634ac1945b05a9576dd8804c9 to your computer and use it in GitHub Desktop.
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "my-app"
primary_region = "cdg"
kill_signal = "SIGINT"
kill_timeout = "5s"
swap_size_mb = 256
[experimental]
auto_rollback = true
[deploy]
strategy = "bluegreen"
[env]
NODE_ENV = "production"
PORT = "8080"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = false
auto_start_machines = false
min_machines_running = 1
processes = ["app"]
[http_service.concurrency]
type = "requests"
soft_limit = 80
hard_limit = 100
[[http_service.checks]]
grace_period = "5s"
interval = "10s"
method = "GET"
timeout = "2s"
path = "/healthcheck"
protocol = "http"
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment