`
sillycat
  • 浏览: 2487282 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Running Zeppelin with Nginx Authentication

 
阅读更多
Running Zeppelin with Nginx Authentication

Limit the Zeppelin only allowed localhost visit.

The only thing need to pay attention to is that zeppelin is using web socket, we need use nginx to proxy that as well.

    upstream zeppelin {
       server localhost:8080;
    }
    server {
        listen       80;
        server_name  localhost;
        #charset koi8-r;
        auth_basic "Restricted Access";
        auth_basic_user_file /opt/nginx/passwd/nginx.passwd;
        #access_log  logs/host.access.log  main;
        location /zeppelin/ {
    proxy_pass http://zeppelin/;
    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://zeppelin/ws;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
}
..snip…
}

Here is the command to generate the password files
> htpasswd -c -b /opt/nginx/passwd/nginx.passwd cloudservice password

-c is to create the file, once we have the file, we do not any it any more
> htpasswd -b /opt/nginx/passwd/nginx.passwd carl password


References:
https://sillycat.iteye.com/blog/2441250



分享到:
评论

相关推荐

    zeppelin-authentication:Zeppelin的简单身份验证

    Docker的Zeppelin身份验证 是的笔记本。 Zeppelin不支持身份验证,这是多用户环境的要求。 这是尝试使用nginx和Docker容器提供简单的基于密码的身份验证。 创建密码文件 需要基本的密码文件进行身份验证。 我不随...

    zeppelin素材

    zeppelin主题两个,愿得一人心 ,白首不相离 首先保证已经越狱并安装了Zeppelin,【Zeppelin安装教程】  1,下载你想要的文字或者图标到你的电脑,本文最后会提供部分小编喜欢的图标  2,手机连接PP助手,点开...

    Apache Zeppelin 0.7.2 中文文档

    Apache Zeppelin 0.7.2 中文文档 Apache Zeppelin 0.7.2 中文文档 Apache Zeppelin 0.7.2 中文文档

    zeppelin简单安装.md

    cloudera manager6.2.1web界面集成zeppelin,由于原装的CDH6.2.1parcel包没有包含zeppelin组件,我们公司又用到了这个zeppelin组件,所以我临危受命开始安装zeppelin,刚开始的时候也是不太懂怎么安装,第一次接触最新的...

    apache zeppelin使用文档

    apache zeppelin使用文档

    zeppelin_docs

    zeppelin source for documents.zeppelin source for documents.zeppelin source for documents.zeppelin source for documents.

    zeppelin-0.8.1-bin-all.tgz

    zeppelin-0.8.1-bin-all.tgz

    zeppelin-0.8.0-bin-all.tgz

    zeppelin-0.8.0-bin-all.tgz

    Zeppelin 2

    Zeppelin 2

    zeppelin-iotdb-0.13.0-jar-with-dependencies.jar

    iotdb 0.13 zeppelin 解释器

    Apache Zeppelin 未授权任意命令执行.md

    Apache Zeppelin 未授权任意命令执行

    zeppelin&说明书.rar

    接上一个一键安装脚本,由于资源大小限制,再补一个zeppelin的安装包和使用说明书

    minecraft zeppelin1.8.1

    minecraft zeppelin mod 1.8.1

    zeppelin集成ldap

    zeppelin集成ldap,很全面的安装使用等.......................................................................................................................................................................

    zeppelin-blink_poc.zip

    zeppelin与blink的集成。对应github地址为https://github.com/zjffdu/zeppelin/tree/blink_poc 这个版本的zeppelin支持blink,这是相关文档 ...

    BigDataTools_for_intellij-213.5449.243

    With this plugin, you can conveniently work with Zeppelin notebooks, run applications with spark-submit, produce and consume messages with Kafka, monitor Spark and Hadoop YARN applications, and work ...

    zeppelin外部jar包

    zeppelin外部jar包

    Zeppelin源码分析—Zeppelin的设计思想

    本文从需求出发,探索Zeppelin的架构设计、技术选型、代码的模块划分和依赖关系的最初“出发点”,从而我们可以了解到Zeppelin为什么是这样设计的。Zeppelin的最核心的功能,用一句话总结就是:支持多语言repl的解释...

Global site tag (gtag.js) - Google Analytics