From 57b8f317c412f7fa022ee93e09a3830c3315d0f2 Mon Sep 17 00:00:00 2001 From: Thomas Skowron <th@skowron.eu> Date: Mon, 7 Oct 2024 15:44:41 +0200 Subject: [PATCH] ops: use proxy for postgres --- fly.toml | 80 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/fly.toml b/fly.toml index 1f837c8..d68bfdf 100644 --- a/fly.toml +++ b/fly.toml @@ -5,53 +5,53 @@ kill_timeout = 5 swap_size_mb = 512 [experimental] - auto_rollback = true +auto_rollback = true [env] - GUNICORN_WORKERS = "2" - OSMCAL_PG_HOST = "top1.nearest.of.osmcal-db2.internal" - OSMCAL_PROD = "true" - PORT = "8080" - WRITABLE_REGION = "ams" +GUNICORN_WORKERS = "2" +OSMCAL_PG_HOST = "osmcal-db2.flycast" +OSMCAL_PROD = "true" +PORT = "8080" +WRITABLE_REGION = "ams" [[services]] - protocol = "tcp" - internal_port = 8080 - processes = ["app"] - auto_stop_machines = true - auto_start_machines = true - min_machines_running = 1 - - [[services.ports]] - port = 80 - handlers = ["http"] - force_https = true - - [[services.ports]] - port = 443 - handlers = ["tls", "http"] - - [services.concurrency] - type = "connections" - hard_limit = 125 - soft_limit = 100 - - [[services.http_checks]] - interval = "10s" - timeout = "2s" - grace_period = "3s" - restart_limit = 10 - method = "get" - path = "/" - protocol = "http" +protocol = "tcp" +internal_port = 8080 +processes = ["app"] +auto_stop_machines = true +auto_start_machines = true +min_machines_running = 1 + +[[services.ports]] +port = 80 +handlers = ["http"] +force_https = true + +[[services.ports]] +port = 443 +handlers = ["tls", "http"] + +[services.concurrency] +type = "connections" +hard_limit = 125 +soft_limit = 100 + +[[services.http_checks]] +interval = "10s" +timeout = "2s" +grace_period = "3s" +restart_limit = 10 +method = "get" +path = "/" +protocol = "http" [[statics]] - guest_path = "/app/static/" - url_prefix = "/static/" +guest_path = "/app/static/" +url_prefix = "/static/" [metrics] - port = 8080 - path = "/metrics" +port = 8080 +path = "/metrics" [deploy] - release_command = "make migrate" +release_command = "make migrate"