【问题标题】:Change from http to https in Superset在 Superset 中从 http 更改为 https
【发布时间】:2020-09-21 01:14:47
【问题描述】:

我已经在 Centos 7 Minimal 的机器上安装了 Apache Superset,但我不知道如何在配置文件中从 http 更改为 https。

我更改了路径 /usr/local/lib/python3.6/site-packages/superset/config.py 中的一些值,但结果相同。

【问题讨论】:

  • 请更具体地说明您已经尝试过哪些配置更改。

标签: apache-superset superset


【解决方案1】:

您可以使用 Lets Encrypt,一个免费的 SSL 证书

  1. 使用此命令安装 Certbot

    sudo yum install certbot python2-certbot-apache

  2. 运行此命令获取证书

    sudo certbot --apache

  3. 使用此命令设置证书自动续订

    echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null

  4. 通过 https 访问您的站点来确认 certbot 是否工作

最后将你的超集重定向到 https。

【讨论】:

  • 对不起,我是超集的新手,如何将超集从 http 配置为 https?
  • 谢谢,我能够使用 https 连接到超集,因为我不知道执行此操作的确切命令,但我终于找到了。该命令将是“superset run --cert "PATH_CERT" --key "PATH_KEY" -p "PORT" -h "IpAddress" "
猜你喜欢
  • 2020-11-18
  • 2020-12-30
  • 2014-10-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-05-25
  • 2018-06-15
  • 2018-01-02
相关资源
最近更新 更多