Sanket, Its works for me, and I'm based on this documentation: https://zeppelin.apache.org/docs/0.7.3/security/authentication.html
Like that: > location /ws { > proxy_pass http://my_internal_ip:8080/ws; > proxy_read_timeout 86400; > proxy_connect_timeout 5s; > proxy_redirect off; > proxy_set_header Upgrade websocket; > proxy_set_header Connection upgrade; > } > location / { > proxy_pass http://my_internal_ip:8080; > proxy_read_timeout 5s; > proxy_connect_timeout 5s; > proxy_redirect off; } On Mon, Jun 4, 2018 at 12:58 PM, Sanket Shah <sanket.s...@outlook.com> wrote: > Am trying to put Nginx in front of Zeppelin. Regular requests are passing > through, but Websockets are not working. Followed this based on guide of > Zeppelin - https://zeppelin.apache.org/docs/0.7.3/security/ > authentication.html > <https://urldefense.proofpoint.com/v2/url?u=https-3A__zeppelin.apache.org_docs_0.7.3_security_authentication.html&d=DwMGaQ&c=BxKcMbETFwSktsL116c0CLzwOlCGdYKnl0_kgHBnEac&r=Cz313sy0DGD4JuHZ93S6bMPpG1xAhcZHh_bw6lGKbAU&m=9yw9l6aFIV_QYXsnWd438noiAl-S9P16m7-x5W5kHjs&s=JITiZqiJEpnQXaeBIReD1TLouNuR6Phj0j83dzc-7oM&e=>. > Seems having a real tough luck to get this going as scratching head and > pulling hairs 😞 > Apache Zeppelin 0.7.3 Documentation: Authentication for NGINX > <https://urldefense.proofpoint.com/v2/url?u=https-3A__zeppelin.apache.org_docs_0.7.3_security_authentication.html&d=DwMGaQ&c=BxKcMbETFwSktsL116c0CLzwOlCGdYKnl0_kgHBnEac&r=Cz313sy0DGD4JuHZ93S6bMPpG1xAhcZHh_bw6lGKbAU&m=9yw9l6aFIV_QYXsnWd438noiAl-S9P16m7-x5W5kHjs&s=JITiZqiJEpnQXaeBIReD1TLouNuR6Phj0j83dzc-7oM&e=> > There are multiple ways to enable authentication in Apache Zeppelin. This > page describes HTTP basic auth using NGINX. > zeppelin.apache.org > > Below is excerpt of my configuration: > > location /zeppelin/ { > proxy_pass http://104.211.216.218:8080/; proxy_set_header X-Real-IP > $remote_addr; > proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; > proxy_set_header Host $http_host; > proxy_set_header X-NginX-Proxy true; > proxy_redirect off; > } > > location /zeppelin/ws { > proxy_pass http://104.211.216.218:8080/ws; proxy_http_version 1.1; > proxy_set_header Upgrade websocket; > proxy_set_header Connection upgrade; > proxy_read_timeout 86400; > } > > > > > *Sanket Tarun Shah - **Enterprise Architect* > +91 98793 56075 | sanket.s...@outlook.com > <https://urldefense.proofpoint.com/v2/url?u=http-3A__outlook.com&d=DwMGaQ&c=BxKcMbETFwSktsL116c0CLzwOlCGdYKnl0_kgHBnEac&r=Cz313sy0DGD4JuHZ93S6bMPpG1xAhcZHh_bw6lGKbAU&m=9yw9l6aFIV_QYXsnWd438noiAl-S9P16m7-x5W5kHjs&s=EclHAKhIsMoxNCYUiJWjH3KeOi6uT5U2ZAe6btLSfQA&e=> > (LinkedIn > <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_sankettshah&d=DwMGaQ&c=BxKcMbETFwSktsL116c0CLzwOlCGdYKnl0_kgHBnEac&r=Cz313sy0DGD4JuHZ93S6bMPpG1xAhcZHh_bw6lGKbAU&m=9yw9l6aFIV_QYXsnWd438noiAl-S9P16m7-x5W5kHjs&s=Ryfsg6dMNda_PASEjXxr37xCEEE1cNRrkImmaKHy_c0&e=> > ) >