summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Arnold <matt@thegnuguru.org>2023-01-14 00:26:57 -0500
committerMatt Arnold <matt@thegnuguru.org>2023-01-14 00:26:57 -0500
commitb5d9a4a473a8e40a724b98f5033f33400e15be78 (patch)
tree6f681021485981310dc90f26f38e31ba7318cfee
parent40fdfd29b720f73330df039579ccdef5fb6b6d27 (diff)
add flyio stuff and suppport code for the new engine flyio
-rw-r--r--Dockerfile6
-rwxr-xr-xappbuild.sh3
-rw-r--r--fly.toml38
3 files changed, 43 insertions, 4 deletions
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"