Search code examples
apache-superset

Change from http to https in Superset


I have installed Apache Superset in a machine Centos 7 Minimal, but I don´t know how to change from http to https in the configuration file.

I have changed some values in path /usr/local/lib/python3.6/site-packages/superset/config.py but I have the same result.


Solution

  • You can use Lets Encrypt, a free SSL certificate

    1. Install Certbot using this command

      sudo yum install certbot python2-certbot-apache

    2. Run this command to get a certificate

      sudo certbot --apache

    3. Setup automatic renewal of the certificate using this command

      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. Confirm if certbot worked by accessing your site through https

    Finally redirect your superset to https.