Skip to content

Commit

Permalink
Customise caddy build to ensure http to https redirect is temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Aug 6, 2024
1 parent b75c25d commit f43a324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/COPY_ROOT_0/opt/ai-dock/bin/supervisor-caddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function start() {
source /opt/ai-dock/etc/environment.sh

# Give processes time to register their ports
sleep 2
sleep 4

export SERVICEPORTAL_LOGIN=$(direct-url.sh -p "${SERVICEPORTAL_PORT_HOST:-1111}" -l "/login")
env-store SERVICEPORTAL_LOGIN
Expand Down
1 change: 1 addition & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN apt-get update && \
wget https://github.com/caddyserver/xcaddy/releases/download/v0.4.2/xcaddy_0.4.2_linux_amd64.deb && \
apt-get install ./xcaddy_0.4.2_linux_amd64.deb && \
xcaddy build \
--with github.com/caddyserver/caddy/v2=github.com/ai-dock/caddy/v2@httpredirect \
--with github.com/caddyserver/replace-response && \
mkdir -p /opt/caddy/bin && \
mkdir -p /opt/caddy/tls && \
Expand Down

0 comments on commit f43a324

Please sign in to comment.