mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
No longer push Capsule to fly.io
This commit is contained in:
parent
6586134d20
commit
e3fdcc036e
2 changed files with 0 additions and 46 deletions
11
Dockerfile
11
Dockerfile
|
@ -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"]
|
35
fly.toml
35
fly.toml
|
@ -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
|
Loading…
Reference in a new issue