all repos — homestead @ ed2e64827fd84d71e52ff078db193fca969bb35b

Code for my website

handle TLS in server with ACME

Alan Pearce
commit

ed2e64827fd84d71e52ff078db193fca969bb35b

parent

274843533d616c3c6db5d74a071764131fc508d7

1 file changed, 17 insertions(+), 20 deletions(-)

changed files
M fly.tomlfly.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"