From 50456c578497e9921558941eae59fa01bcf269bf Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 24 Jun 2024 17:18:27 +0200 Subject: handle TLS in server with ACME --- fly.toml | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) (limited to 'fly.toml') diff --git a/fly.toml b/fly.toml index 1ac7973..45f70ee 100644 --- a/fly.toml +++ b/fly.toml @@ -10,34 +10,31 @@ primary_region = "ams" image = "registry.fly.io/alanpearce-eu" [env] - BASE_URL = "https://alanpearce.eu" PORT = "80" - REDIRECT_OTHER_HOSTNAMES = "true" + TLS = "true" -[http_service] +[[services]] internal_port = 80 - force_https = true - auto_stop_machines = false - auto_start_machines = true - min_machines_running = 3 - processes = [ "app" ] - - [[http_service.checks]] - grace_period = "15s" - interval = "15s" - method = "GET" - timeout = "1s" - path = "/health" - - [http_service.concurrency] + + [services.concurrency] type = "requests" soft_limit = 15000 - [http_service.http_options] - h2_backend = true + [[services.ports]] + port = 80 + +[[services]] + internal_port = 443 + + [[services.ports]] + port = 443 - [http_service.http_options.response] - pristine = true + [services.concurrency] + type = "requests" + soft_limit = 15000 [[vm]] size = "shared-cpu-1x" + +[[restart]] + policy = "always" -- cgit 1.4.1