diff options
author | Valkum <rudi.floren@gmail.com> | 2020-09-17 15:36:36 +0200 |
---|---|---|
committer | Valkum <rudi.floren@gmail.com> | 2020-09-17 15:36:36 +0200 |
commit | da28c12eebc95be72308302abe69743852cec552 (patch) | |
tree | adbe703b9a90234265c6864dd2ae349e57a9a724 /tests | |
parent | 8d66428bebf3f2f595fb138c804f0c747917e399 (diff) | |
download | conduit-da28c12eebc95be72308302abe69743852cec552.zip |
Try to add TLS reverse proxy for complement
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Complement.Dockerfile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/Complement.Dockerfile b/tests/Complement.Dockerfile index 35b3324..10a33d7 100644 --- a/tests/Complement.Dockerfile +++ b/tests/Complement.Dockerfile @@ -13,9 +13,16 @@ RUN cargo build FROM valkum/docker-rust-ci:latest WORKDIR /build + +RUN curl -OL "https://github.com/caddyserver/caddy/releases/download/v2.1.1/caddy_2.1.1_linux_amd64.tar.gz" +RUN tar xzf caddy_2.1.1_linux_amd64.tar.gz + COPY --from=builder /build/target/debug/conduit /conduit ENV SERVER_NAME=localhost -EXPOSE 14004 8448 +COPY Rocket-example.toml Rocket.toml +RUN sed -i "s/server_name: your.server.name/server_name: ${SERVER_NAME}/g" Rocket.toml +RUN sed -i "s/port = 14004/port: 8008/g" Rocket.toml -CMD sed "s/server_name: your.server.name/server_name: ${SERVER_NAME}/g" Rocket-example.toml Rocket.toml && /conduit
\ No newline at end of file +EXPOSE 8008 8448 +CMD caddy --from 8448 --to localhost:8008 & && /conduit
\ No newline at end of file |