From b7e524e57ff786dfd9a635d662a97422a3dc563d Mon Sep 17 00:00:00 2001 From: Francesco Frassinelli Date: Fri, 13 May 2022 00:42:16 +0200 Subject: [PATCH] Add support for fly.io --- fly.toml | 41 +++++++++++++++++++++++++++++++++++++++++ redis/fly.toml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 fly.toml create mode 100644 redis/fly.toml diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..9a0a2fa --- /dev/null +++ b/fly.toml @@ -0,0 +1,41 @@ +app = "is-osm-uptodate" + +kill_signal = "SIGINT" +kill_timeout = 5 + +[env] + REDIS_HOST = "is-osm-uptodate-redis.internal" + +[[statics]] + guest_path = "/web" + url_prefix = "/" + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[[services]] + http_checks = [] + internal_port = 8000 + protocol = "tcp" + script_checks = [] + + [services.concurrency] + hard_limit = 4096 + soft_limit = 256 + type = "connections" + + [[services.ports]] + handlers = ["http"] + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 + + [[services.tcp_checks]] + grace_period = "1s" + interval = "15s" + restart_limit = 6 + timeout = "2s" + diff --git a/redis/fly.toml b/redis/fly.toml new file mode 100644 index 0000000..9e680b8 --- /dev/null +++ b/redis/fly.toml @@ -0,0 +1,31 @@ +# fly.toml file generated for is-osm-uptodate-redis on 2022-05-11T19:29:49+02:00 + +app = "is-osm-uptodate-redis" + +kill_signal = "SIGINT" +kill_timeout = 5 +processes = [] + +[env] + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[[services]] + http_checks = [] + internal_port = 6379 + processes = ["app"] + protocol = "tcp" + script_checks = [] + + [services.concurrency] + hard_limit = 64 + soft_limit = 32 + type = "connections" + + [[services.tcp_checks]] + grace_period = "1s" + interval = "15s" + restart_limit = 0 + timeout = "2s"