How to install Apache superset docker container, configure ssl

  1.  login in to ubuntu machine
  2.  install docker host
  3. clone  the repo:  https://github.com/apache/superset.git
  4. update the docker-compose.yml file :

expose the 443 port

    5- update the nginx.conf file , add:

 server {
        listen 443 ssl;
        server_name backend.samiphotolishz.com;

        ssl_certificate /etc/ssl/certs/certificate.crt;
        ssl_certificate_key /etc/ssl/certs/private.key;

        # Other SSL configurations like SSL protocols and ciphers can be added here

        location / {
            proxy_pass http://superset_app;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Forwarded-Host $host;
            proxy_intercept_errors on;
        }
    }

    server {
        listen 80;
        server_name backend.samiphotolishz.com;

        # Redirect HTTP to HTTPS
        return 301 https://$host$request_uri;
    }

 

 

6- start the docker compose : docker-compose up -d

 

Comments

Popular posts from this blog

Another user has changed the row with primary key oracle.jbo.Key[12 ].

weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck

Working With File Throgh WebUtill