Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache superset 在超集中从http更改为https_Apache Superset_Superset - Fatal编程技术网

Apache superset 在超集中从http更改为https

Apache superset 在超集中从http更改为https,apache-superset,superset,Apache Superset,Superset,我已经在Centos 7 Minimal机器上安装了Apache Superset,但我不知道如何在配置文件中从http更改为https 我已经更改了路径/usr/local/lib/python3.6/site packages/superset/config.py中的一些值,但是我得到了相同的结果。您可以使用免费SSL证书Lets Encrypt 使用此命令安装Certbot sudo yum安装certbot python2 certbot apache 运行此命令以获取证书 sudoc

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


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

您可以使用免费SSL证书Lets Encrypt

  • 使用此命令安装Certbot

    sudo yum安装certbot python2 certbot apache

  • 运行此命令以获取证书

    sudocertbot——apache

  • 使用此命令设置证书的自动续订

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

  • 通过https访问您的站点,确认certbot是否工作


  • 最后将超集重定向到https。

    请更具体地指定您已经尝试过的配置更改。很抱歉,我是超集新手,您如何将超集从http配置为https?谢谢,我能够使用https连接到超集,因为我不知道执行此操作的确切命令,但我最终发现了它。该命令将是“超集运行--cert“PATH\u cert”-key“PATH\u key”-p“PORT”-h“IpAddress”