server { #listen 443 ssl; listen 80; server_name ha.patachina.casacam.net; #ssl on; #ssl_certificate /etc/nginx/ssl/home.example.org/home.example.org-bundle.crt; #ssl_certificate_key /etc/nginx/ssl/home.example.org/home.example.org.key; #ssl_prefer_server_ciphers on; location / { proxy_pass http://192.168.1.4:8123; proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } location /api/websocket { proxy_pass http://192.168.1.4:8123/api/websocket; proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }