From b0dbe84ba2b3933bf7acbd220138a611333465b0 Mon Sep 17 00:00:00 2001 From: Milas Holsting Date: Tue, 12 May 2026 22:00:19 +0200 Subject: [PATCH] Fix caddy config, trailing slash, and service protocol --- Caddyfile | 6 +++--- Containerfile | 2 -- deploy/service.yaml | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Caddyfile b/Caddyfile index 4639e33..ee2a575 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,6 +1,6 @@ -git.melosh.tech { - reverse_proxy https://pokerogue.net/ { - header_up Host {upstream_hostport} +:80 { + reverse_proxy https://pokerogue.net { + header_up Host pokerogue.net header_up X-Real-IP {remote_host} } } diff --git a/Containerfile b/Containerfile index c797879..bc13807 100644 --- a/Containerfile +++ b/Containerfile @@ -1,5 +1,3 @@ FROM docker.io/caddy:2-alpine COPY ./Caddyfile /etc/caddy/Caddyfile - -CMD [ "caddy", "run" ] diff --git a/deploy/service.yaml b/deploy/service.yaml index 82a7e30..2147cac 100644 --- a/deploy/service.yaml +++ b/deploy/service.yaml @@ -9,7 +9,7 @@ spec: type: ClusterIP ports: - name: douwsky-proxy - protocol: + protocol: TCP port: 80 targetPort: 80 ---