From e4b71276a763e20158bd6f022b8e9b5b51dfe44c Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 6 Nov 2024 14:26:58 +0100 Subject: [PATCH] generic fly service configuration --- fly/applications/caddy/fly.toml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/fly/applications/caddy/fly.toml b/fly/applications/caddy/fly.toml index 96aea19..216261b 100644 --- a/fly/applications/caddy/fly.toml +++ b/fly/applications/caddy/fly.toml @@ -6,14 +6,23 @@ app = 'rogue-scholar-caddy' primary_region = 'fra' -[http_service] +[[services]] internal_port = 8080 - force_https = true - auto_stop_machines = 'stop' + protocol = "tcp" + auto_stop_machines = "off" auto_start_machines = true - min_machines_running = 0 + min_machines_running = 1 processes = ['app'] +[[services.ports]] + handlers = ["http"] + port = 80 + # force_https = true + +[[services.ports]] + handlers = ["tls", "http"] + port = 443 + [[vm]] memory = '1gb' cpu_kind = 'shared'