diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 208fedad..00000000 --- a/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM ghcr.io/rust-cross/rust-musl-cross:x86_64-unknown-linux-musl as agate - -RUN cargo install agate - -FROM scratch -COPY --from=agate /root/.cargo/bin/agate /bin/agate -COPY ./public/ /var/agate/content/ - -EXPOSE 1965 - -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 deleted file mode 100644 index 27790f48..00000000 --- a/fly.toml +++ /dev/null @@ -1,35 +0,0 @@ -# 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' - -[build] - -[[files]] - guest_path = "/var/agate/certificates/byjp.cc/cert.der" - secret_name = "AGATE_CERT" - -[[files]] - guest_path = "/var/agate/certificates/byjp.cc/key.der" - secret_name = "AGATE_KEY" - -[[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 - -[[vm]] - memory = '512mb' - cpu_kind = 'shared' - cpus = 1