diff --git a/reverse_proxy/.claude/settings.local.json b/reverse_proxy/.claude/settings.local.json index fd90718..67f9dff 100644 --- a/reverse_proxy/.claude/settings.local.json +++ b/reverse_proxy/.claude/settings.local.json @@ -15,7 +15,12 @@ "Bash(docker stop:*)", "Bash(docker rm:*)", "Bash(docker run:*)", - "WebSearch" + "WebSearch", + "Bash(git push:*)", + "WebFetch(domain:github.com)", + "WebFetch(domain:amplify.nginx.com)", + "WebFetch(domain:packagecloud.io)", + "WebFetch(domain:pkgs.tailscale.com)" ], "deny": [], "ask": [] diff --git a/reverse_proxy/Dockerfile b/reverse_proxy/Dockerfile index 302a60c..d4b09b2 100644 --- a/reverse_proxy/Dockerfile +++ b/reverse_proxy/Dockerfile @@ -7,14 +7,14 @@ COPY . ./ FROM alpine:latest AS tailscale WORKDIR /app COPY . ./ -ENV TSFILE=tailscale_1.86.2_amd64.tgz +ENV TSFILE=tailscale_1.88.3_amd64.tgz RUN wget https://pkgs.tailscale.com/stable/${TSFILE} && tar xzf ${TSFILE} --strip-components=1 COPY . ./ # https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds FROM alpine:latest -RUN apk update && apk add --no-cache ca-certificates iptables ip6tables nginx goaccess +RUN apk update && apk add --no-cache ca-certificates iptables ip6tables nginx goaccess curl python3 py3-pip # Copy binary to production image COPY --from=builder /app/start.sh /app/start.sh @@ -26,6 +26,7 @@ COPY custom_50x.html /usr/share/nginx/html/ COPY goaccess.sh /app/goaccess.sh COPY .htpasswd /etc/nginx/.htpasswd + # Run on container startup. EXPOSE 8080 CMD ["/app/start.sh"] diff --git a/reverse_proxy/nginx.conf b/reverse_proxy/nginx.conf index 949449e..675ca7b 100644 --- a/reverse_proxy/nginx.conf +++ b/reverse_proxy/nginx.conf @@ -337,6 +337,7 @@ server { } } + server { listen 0.0.0.0:8080; listen [::]:8080; diff --git a/reverse_proxy/start.sh b/reverse_proxy/start.sh index 34d9d96..b717d4b 100755 --- a/reverse_proxy/start.sh +++ b/reverse_proxy/start.sh @@ -6,5 +6,6 @@ # Start GoAccess real-time dashboard /app/goaccess.sh & + # Start nginx /usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'