omfg it works

This commit is contained in:
Radon Rosborough 2022-12-29 00:45:38 -07:00
parent a19af3ba28
commit d370c5fbc8
1 changed files with 10 additions and 2 deletions

View File

@ -15,8 +15,16 @@ data:
auth_basic "Riju administrative proxy";
auth_basic_user_file /etc/nginx/passwd;
location ~ /(10\.[0-9]+\.[0-9]+\.[0-9]+)/(.*) {
proxy_pass http://$1:869/$2;
location ~ /(10\.[0-9]+\.[0-9]+\.[0-9]+)/health {
proxy_pass http://$1:869/health;
}
location ~ /(10\.[0-9]+\.[0-9]+\.[0-9]+)/exec {
proxy_pass http://$1:869/exec$is_args$args;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location / {