More things

This commit is contained in:
Radon Rosborough 2022-12-29 00:33:36 -07:00
parent 7d7bb6d4d3
commit a19af3ba28
1 changed files with 8 additions and 2 deletions

View File

@ -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;
}
}