diff --git a/docker/nginx-https.conf b/docker/nginx-https.conf index e27032b0..5e6126bf 100644 --- a/docker/nginx-https.conf +++ b/docker/nginx-https.conf @@ -115,6 +115,15 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + location ~ ^/terminal(/.*)?$ { + proxy_pass http://127.0.0.1:30001; + proxy_http_version 1.1; + proxy_set_header Host $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; + } + location ~ ^/database(/.*)?$ { client_max_body_size 5G; client_body_timeout 300s; diff --git a/docker/nginx.conf b/docker/nginx.conf index cf078022..db5546f0 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -112,6 +112,15 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + location ~ ^/terminal(/.*)?$ { + proxy_pass http://127.0.0.1:30001; + proxy_http_version 1.1; + proxy_set_header Host $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; + } + location ~ ^/database(/.*)?$ { client_max_body_size 5G; client_body_timeout 300s; diff --git a/src/backend/database/routes/ssh.ts b/src/backend/database/routes/ssh.ts index afa99bcb..e73b6d70 100644 --- a/src/backend/database/routes/ssh.ts +++ b/src/backend/database/routes/ssh.ts @@ -862,6 +862,7 @@ router.get( router.delete( "/db/host/:id", authenticateJWT, + requireDataAccess, async (req: Request, res: Response) => { const userId = (req as AuthenticatedRequest).userId; const hostId = req.params.id;