问题描述
我已经在Centos 7 Minimal机器上安装了Apache Superset,但是我不知道如何在配置文件中从http更改为https。
我更改了路径 /usr/local/lib/python3.6/site-packages/superset/config.py 中的某些值,但结果相同。
解决方法
您可以使用免费的SSL证书Lets Encrypt
-
使用此命令安装Certbot
sudo yum install certbot python2-certbot-apache
-
运行此命令以获取证书
sudo certbot --apache
-
使用此命令设置证书自动更新
echo“ 0 0,12 * * * root python -c'导入随机;导入时间; time.sleep(random.random()* 3600)'&& certbot更新-q” | sudo tee -a / etc / crontab> / dev / null
-
通过通过https访问您的网站来确认certbot是否起作用
最后将您的超集重定向到https。