Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
da28c12e
Commit
da28c12e
authored
4 years ago
by
Valkum
Browse files
Options
Downloads
Patches
Plain Diff
Try to add TLS reverse proxy for complement
parent
8d66428b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/Complement.Dockerfile
+9
-2
9 additions, 2 deletions
tests/Complement.Dockerfile
with
9 additions
and
2 deletions
tests/Complement.Dockerfile
+
9
−
2
View file @
da28c12e
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment