initial commit
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m21s

This commit is contained in:
Michael Trip 2026-06-23 15:06:17 +02:00
commit 4dbcde381f
20 changed files with 1151 additions and 0 deletions

40
docker/nginx/webssh.conf Normal file
View file

@ -0,0 +1,40 @@
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 3000;
listen [::]:3000;
server_name _;
location = / {
return 302 $scheme://$http_host/ssh/host/127.0.0.1;
}
location = /ssh {
return 302 $scheme://$http_host/ssh/host/127.0.0.1;
}
location = /ssh/host {
return 302 $scheme://$http_host/ssh/host/127.0.0.1;
}
location ~ ^/ssh/host/(?!127\.0\.0\.1(?:/|$)).+ {
return 302 $scheme://$http_host/ssh/host/127.0.0.1;
}
location / {
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 3600;
proxy_send_timeout 3600;
}
}