From a19af3ba28068acfbaee98b2aaf2dd1d8fb83fb2 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Thu, 29 Dec 2022 00:33:36 -0700 Subject: [PATCH] More things --- k8s/riju-proxy.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/k8s/riju-proxy.yaml b/k8s/riju-proxy.yaml index b2bc351..7cbf131 100644 --- a/k8s/riju-proxy.yaml +++ b/k8s/riju-proxy.yaml @@ -6,6 +6,8 @@ metadata: name: riju-proxy-config data: default.conf: | + underscores_in_headers on; + server { resolver kube-dns.kube-system.svc.cluster.local; listen 1869 default_server; @@ -13,8 +15,12 @@ data: auth_basic "Riju administrative proxy"; auth_basic_user_file /etc/nginx/passwd; - location ~ { - proxy_pass http://$host:869; + location ~ /(10\.[0-9]+\.[0-9]+\.[0-9]+)/(.*) { + proxy_pass http://$1:869/$2; + } + + location / { + return 404; } }