handle TLS in server with ACME
1 file changed, 17 insertions(+), 20 deletions(-)
changed files
M fly.toml → fly.toml
@@ -10,34 +10,31 @@ [build] 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 - [http_service.http_options.response] - pristine = true +[[services]] + internal_port = 443 + + [[services.ports]] + port = 443 + + [services.concurrency] + type = "requests" + soft_limit = 15000 [[vm]] size = "shared-cpu-1x" + +[[restart]] + policy = "always"