You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Max Bridgewater <ma...@gmail.com> on 2016/03/24 12:30:13 UTC
Reverse Proxying Zeppelin 0.5.6 with NGINX
I am trying to reverse proxy Zeppelin 0.5.6 using NGINX. My config is
below. I get the to the Zeppelin UI but I am in disconnected mode. I cannot
create notes and I don't see the Zeppelin tutorial note.
Any suggestion?
Thanks,
Max
server localhost:8080;
}
server {
listen 80;
server_name localhost;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://backendWS;
}
}
Re: Reverse Proxying Zeppelin 0.5.6 with NGINX
Posted by Hyung Sung Shim <hs...@nflabs.com>.
Hello.
I think document should be updated.
And Could you try following nginx configuration for proxy ?
Thanks.
server {
listen 80 ;
server_name _;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $proxy_protocol_addr;
proxy_set_header X-Forwarded-For $proxy_protocol_addr;
proxy_pass http://backend;
}
location /ws {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://backendWS;
}
}
2016-03-24 22:20 GMT+09:00 Max Bridgewater <ma...@gmail.com>:
> Jesan,
>
> Thanks for the link. I changed my configuration to match the one in that
> link. But still doesn't work. I am pasting my config below. The other thing
> that I find weird is that since 0.5.5, Zeppelin uses single port for REST
> and websocket (see https://issues.apache.org/jira/browse/ZEPPELIN-172).
> Yet, the 0.6.0 security page you pointed at, uses two different ports; one
> for REST and one for Websocket. So, I am wondering if the documentation is
> really uptodate.
>
> Thanks,
> Max.
>
>
> upstream zeppelin {
> server localhost:8080;
> }
>
> upstream zeppelin-wss {
> server localhost:8081;
> }
>
> server {
> listen 8010;
> server_name localhost;
>
>
> location / {
> 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_pass http://zeppelin;
> proxy_redirect off;
> }
> }
>
> server {
> listen 8011;
> server_name localhost;
>
> location / {
> proxy_pass http://zeppelin-wss;
> proxy_http_version 1.1;
> proxy_set_header Upgrade websocket;
> proxy_set_header Connection upgrade;
> proxy_read_timeout 86400;
> }
> }
>
>
>
> On Thu, Mar 24, 2016 at 8:00 AM, Jesang Yoon <yo...@kanizsalab.com>
> wrote:
>
>> Max,
>>
>> You can check out NGINX related settings with Zeppelin at document here:
>>
>>
>> http://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/security/authentication.html
>>
>>
>>
>> I hope this will help :)
>>
>>
>>
>>
>>
>> -----Original Message-----
>> *From:* "Max Bridgewater"<ma...@gmail.com>
>> *To:* <us...@zeppelin.incubator.apache.org>;
>> *Cc:*
>> *Sent:* 2016-03-24 (목) 20:30:13
>> *Subject:* Reverse Proxying Zeppelin 0.5.6 with NGINX
>>
>> I am trying to reverse proxy Zeppelin 0.5.6 using NGINX. My config is
>> below. I get the to the Zeppelin UI but I am in disconnected mode. I cannot
>> create notes and I don't see the Zeppelin tutorial note.
>>
>> Any suggestion?
>>
>> Thanks,
>> Max
>>
>>
>> server localhost:8080;
>> }
>> server {
>> listen 80;
>> server_name localhost;
>> location / {
>> proxy_set_header Upgrade $http_upgrade;
>> proxy_set_header Connection "upgrade";
>> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>> proxy_set_header X-Real-IP $remote_addr;
>> proxy_set_header Host $http_host;
>> proxy_pass http://backendWS;
>> }
>> }
>>
>>
>>
>
>
Re: Reverse Proxying Zeppelin 0.5.6 with NGINX
Posted by Max Bridgewater <ma...@gmail.com>.
Jesan,
Thanks for the link. I changed my configuration to match the one in that
link. But still doesn't work. I am pasting my config below. The other thing
that I find weird is that since 0.5.5, Zeppelin uses single port for REST
and websocket (see https://issues.apache.org/jira/browse/ZEPPELIN-172).
Yet, the 0.6.0 security page you pointed at, uses two different ports; one
for REST and one for Websocket. So, I am wondering if the documentation is
really uptodate.
Thanks,
Max.
upstream zeppelin {
server localhost:8080;
}
upstream zeppelin-wss {
server localhost:8081;
}
server {
listen 8010;
server_name localhost;
location / {
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_pass http://zeppelin;
proxy_redirect off;
}
}
server {
listen 8011;
server_name localhost;
location / {
proxy_pass http://zeppelin-wss;
proxy_http_version 1.1;
proxy_set_header Upgrade websocket;
proxy_set_header Connection upgrade;
proxy_read_timeout 86400;
}
}
On Thu, Mar 24, 2016 at 8:00 AM, Jesang Yoon <yo...@kanizsalab.com> wrote:
> Max,
>
> You can check out NGINX related settings with Zeppelin at document here:
>
>
> http://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/security/authentication.html
>
>
>
> I hope this will help :)
>
>
>
>
>
> -----Original Message-----
> *From:* "Max Bridgewater"<ma...@gmail.com>
> *To:* <us...@zeppelin.incubator.apache.org>;
> *Cc:*
> *Sent:* 2016-03-24 (목) 20:30:13
> *Subject:* Reverse Proxying Zeppelin 0.5.6 with NGINX
>
> I am trying to reverse proxy Zeppelin 0.5.6 using NGINX. My config is
> below. I get the to the Zeppelin UI but I am in disconnected mode. I cannot
> create notes and I don't see the Zeppelin tutorial note.
>
> Any suggestion?
>
> Thanks,
> Max
>
>
> server localhost:8080;
> }
> server {
> listen 80;
> server_name localhost;
> location / {
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection "upgrade";
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header Host $http_host;
> proxy_pass http://backendWS;
> }
> }
>
>
>
Re: Reverse Proxying Zeppelin 0.5.6 with NGINX
Posted by pseudo oduesp <ps...@gmail.com>.
unsebscribe me please
2016-03-24 13:00 GMT+01:00 Jesang Yoon <yo...@kanizsalab.com>:
> Max,
>
> You can check out NGINX related settings with Zeppelin at document here:
>
>
> http://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/security/authentication.html
>
>
>
> I hope this will help :)
>
>
>
>
>
> -----Original Message-----
> *From:* "Max Bridgewater"<ma...@gmail.com>
> *To:* <us...@zeppelin.incubator.apache.org>;
> *Cc:*
> *Sent:* 2016-03-24 (목) 20:30:13
> *Subject:* Reverse Proxying Zeppelin 0.5.6 with NGINX
>
> I am trying to reverse proxy Zeppelin 0.5.6 using NGINX. My config is
> below. I get the to the Zeppelin UI but I am in disconnected mode. I cannot
> create notes and I don't see the Zeppelin tutorial note.
>
> Any suggestion?
>
> Thanks,
> Max
>
>
> server localhost:8080;
> }
> server {
> listen 80;
> server_name localhost;
> location / {
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection "upgrade";
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header Host $http_host;
> proxy_pass http://backendWS;
> }
> }
>
>
>
RE: Reverse Proxying Zeppelin 0.5.6 with NGINX
Posted by Jesang Yoon <yo...@kanizsalab.com>.
Max,
You can check out NGINX related settings with Zeppelin at document here:
http://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/security/authentication.html
I hope this will help :)
-----Original Message-----
From: "Max Bridgewater"<max.bridgewater@gmail.com>
To: <users@zeppelin.incubator.apache.org>;
Cc:
Sent: 2016-03-24 (목) 20:30:13
Subject: Reverse Proxying Zeppelin 0.5.6 with NGINX
I am trying to reverse proxy Zeppelin 0.5.6 using NGINX. My config is below. I get the to the Zeppelin UI but I am in disconnected mode. I cannot create notes and I don't see the Zeppelin tutorial note.
Any suggestion?
Thanks, Max
server localhost:8080;
}
server {
listen 80;
server_name localhost;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://backendWS;
}
}