No longer push Capsule to fly.io

This commit is contained in:
JP Hastings-Spital 2024-11-20 17:28:05 +00:00
parent 6586134d20
commit e3fdcc036e
2 changed files with 0 additions and 46 deletions

View file

@ -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"]

View file

@ -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