diff options
Diffstat (limited to 'fly.toml')
-rw-r--r-- | fly.toml | 75 |
1 files changed, 45 insertions, 30 deletions
diff --git a/fly.toml b/fly.toml index 4fc764b..ef6e3ea 100644 --- a/fly.toml +++ b/fly.toml @@ -1,4 +1,4 @@ -# fly.toml app configuration file generated for homestead on 2023-09-14T11:40:37+02:00 +# fly.toml app configuration file generated for alanpearce-eu on 2024-06-19T15:17:02+02:00 # # See https://fly.io/docs/reference/configuration/ for information about how to use this file. # @@ -10,37 +10,52 @@ primary_region = "ams" image = "registry.fly.io/alanpearce-eu" [env] - PORT = "80" - REDIRECT_OTHER_HOSTNAMES = "true" - BASE_URL = "https://alanpearce.eu" - -[[files]] - guest_path = "/config.toml" - local_path = "config.toml" - -[metrics] - port = 9091 - path = "/metrics" - -[http_service] - internal_port = 80 - force_https = true - auto_stop_machines = false - auto_start_machines = true - min_machines_running = 3 - processes = [ "app" ] - [http_service.concurrency] + PORT = "8080" + TLS_PORT = "8443" + LISTEN_ADDRESS = "::" + TLS = "true" + ROOT = "/data" + PRODUCTION = "true" + VCS_LOCAL_PATH = "/data/website" + VCS_REMOTE_URL = "https://git.alanpearce.eu/website.git" + ACME_SERVER_URL = "https://acme.alanpearce.eu" + +[[services]] + internal_port = 8080 + + [services.concurrency] + type = "requests" + soft_limit = 15000 + + [[services.ports]] + port = 80 + +[[services]] + internal_port = 8443 + + [[services.ports]] + port = 443 + + [services.concurrency] type = "requests" soft_limit = 15000 - [http_service.http_options] - h2_backend = true - [http_service.http_options.response] - pristine = true - [[http_service.checks]] - grace_period = "15s" - interval = "30s" + + [[services.http_checks]] + grace_period = "10s" + protocol = "https" + tls_server_name = "alanpearce.eu" + interval = "10s" method = "GET" timeout = "1s" path = "/health" - [http_service.checks.headers] - Host = "fly-internal" + +[[vm]] + size = "shared-cpu-1x" + +[[restart]] + policy = "always" + +[mounts] + source = "data" + destination = "/data" + initial_size = "1gb" |