From a9a30d98dfa2adf1ee97f53e648c58e8f1ba9883 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Wed, 1 May 2024 18:01:33 +0100 Subject: [PATCH] Fix fly.io depoyment --- Dockerfile | 2 +- fly.toml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5bb2e116..208fedad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ COPY ./public/ /var/agate/content/ EXPOSE 1965 -ENTRYPOINT ["/bin/agate", "--content", "/var/agate/content/", "--addr", "0.0.0.0:1965", "--only-tls13", "--central-conf", "--lang", "en-GB", "--certs", "/var/agate/certificates/", "--hostname", "byjp.cc"] +ENTRYPOINT ["/bin/agate", "--content", "/var/agate/content/", "--addr", "0.0.0.0:1965", "--only-tls13", "--central-conf", "--certs", "/var/agate/certificates/", "--hostname", "byjp.cc"] diff --git a/fly.toml b/fly.toml index da47fcc2..9c91a63c 100644 --- a/fly.toml +++ b/fly.toml @@ -1,7 +1,5 @@ -# fly.toml app configuration file generated for byjp-cc on 2024-04-30T15:16:09+01:00 -# -# See https://fly.io/docs/reference/configuration/ for information about how to use this file. -# +# Important! This app needs a dedicated IP address to work properly +# Run `fly ips allocate-v4` after first deploy to buy one, then remove the shared IP and continue. app = 'byjp-cc' primary_region = 'lhr' @@ -18,10 +16,16 @@ primary_region = 'lhr' [[services]] internal_port = 1965 + protocol = "tcp" auto_stop_machines = true auto_start_machines = true min_machines_running = 0 + [services.concurrency] + hard_limit = 5000 + soft_limit = 4000 + type = "connections" + [[services.ports]] port = 1965