From b5d9a4a473a8e40a724b98f5033f33400e15be78 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Sat, 14 Jan 2023 00:26:57 -0500 Subject: add flyio stuff and suppport code for the new engine --- Dockerfile | 6 ++---- appbuild.sh | 3 +++ fly.toml | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 fly.toml diff --git a/Dockerfile b/Dockerfile index 258cdda..6e372e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,11 @@ RUN echo -e "\nhttps://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/ap RUN apk add --update --no-cache go git make musl-dev curl openssl RUN mkdir -p /app/src WORKDIR /app/src +ARG appRoot=/app COPY appbuild.sh /app/src RUN chmod +x appbuild.sh RUN ./appbuild.sh -COPY intercept.key /app -COPY intercept.csr /app -COPY intercept.crt /app - +COPY sign.sh /app/src WORKDIR / COPY entrypoint.sh / RUN chmod +x entrypoint.sh diff --git a/appbuild.sh b/appbuild.sh index f5d1702..2ebd932 100755 --- a/appbuild.sh +++ b/appbuild.sh @@ -12,10 +12,13 @@ make cp miniwebproxy $appRoot cp -r scripts/ $appRoot chmod +x sign.sh +./sign.sh +cp intercept* $appRoot cd .. sh -c miniweb/sign.sh git clone https://git.piusbird.space/poseidon.git/ cd poseidon go build cp *.html $appRoot +cp -r assets $appRoot cp poseidon $appRoot diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..48e5258 --- /dev/null +++ b/fly.toml @@ -0,0 +1,38 @@ +# fly.toml file generated for blueproxy on 2023-01-08T21:14:11-05:00 + +app = "blueproxy" +kill_signal = "SIGINT" +kill_timeout = 5 +processes = [] + +[env] + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[[services]] + http_checks = [] + internal_port = 3000 + processes = ["app"] + protocol = "tcp" + script_checks = [] + [services.concurrency] + hard_limit = 25 + soft_limit = 20 + type = "connections" + + [[services.ports]] + force_https = true + handlers = ["http"] + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 + + [[services.tcp_checks]] + grace_period = "1s" + interval = "15s" + restart_limit = 0 + timeout = "2s" -- cgit 1.3.0-5-g400f