github.com/minio/console@v1.4.1/web-app/tests/subpath-nginx/nginx.conf (about) 1 events { worker_connections 1024; } 2 http { 3 server { 4 listen 8000; 5 location /console/subpath/ { 6 rewrite ^/console/subpath/(.*) /$1 break; 7 proxy_pass http://host.docker.internal:9090; 8 9 proxy_http_version 1.1; 10 proxy_set_header Upgrade $http_upgrade; 11 proxy_set_header Connection "Upgrade"; 12 proxy_set_header Host $host; 13 proxy_set_header X-Real-IP $remote_addr; 14 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 15 proxy_set_header X-Forwarded-Proto $scheme; 16 17 # This allows WebSocket connections 18 proxy_set_header Upgrade $http_upgrade; 19 proxy_set_header Connection "upgrade"; 20 } 21 } 22 }