Fixed: Nginx WebSocket configuration causing Single User Servers to miss out api requests

This commit is contained in:
2025-09-15 21:14:54 +02:00
parent a5688c071d
commit 6606b874e5
4 changed files with 26 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
# nginx/conf.d/jupyterhub.conf
server {
listen 80;
server_name _; # Respond to all hostnames
@@ -14,8 +13,12 @@ server {
# WebSocket support (crucial for Jupyter)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
proxy_send_timeout 86400;
# Disable buffering for WebSocket
proxy_buffering off;
# Handle large file uploads
client_max_body_size 100M;