diff options
Diffstat (limited to 'fly.toml')
-rw-r--r-- | fly.toml | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/fly.toml b/fly.toml index 039c968..5b25a9d 100644 --- a/fly.toml +++ b/fly.toml @@ -7,23 +7,35 @@ app = "alanpearce-eu" primary_region = "ams" [build] + image = "registry.fly.io/alanpearce-eu" + +[env] + PORT = "80" + REDIRECT_OTHER_HOSTNAMES = "true" + BASE_URL = "https://alanpearce.eu" [metrics] port = 9091 path = "/metrics" [http_service] - internal_port = 3000 + internal_port = 80 force_https = true auto_stop_machines = false auto_start_machines = true min_machines_running = 3 processes = ["app"] -[http_service.http_options.response.headers] - Strict-Transport-Security = "max-age=31536000; includeSubdomains; preload" + [http_service.concurrency] + type = "requests" + hard_limit = 20000 + soft_limit = 15000 +[http_service.http_options.response] + pristine = true [[http_service.checks]] - grace_period = "10s" + grace_period = "15s" interval = "30s" method = "GET" - timeout = "5s" + timeout = "1s" path = "/health" + [http_service.checks.headers] + Host = "fly-internal" |