<p dir="auto">My superset is installed on my AWS EC2 instance in:<br>
/home/ec2-user/.pyenv/versions/2.7.12/lib/python2.7/site-packages</p>
<p dir="auto">And my SSL is serving my /var/www/ securely on this same server. I created a webpage to display the dashboard in an iframe but, cannot get it to appear because of a mixed-content warning - not being able to display insecure content on a secure page.</p>
<p dir="auto">How would I display my dashboards on a such a secure page when my python is in the server user account but, my website is in a SSL-enabled web area?</p>
<p dir="auto">Thanks for any help!</p>
<p dir="auto">Hello I am trying to add HTTPS to Caravel... I made a hack:<br>
/usr/local/bin/caravel (VPS, Debian 8 64bits)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        cmd = (
            &quot;gunicorn &quot;
            &quot;-w {workers} &quot;
            &quot;--timeout {timeout} &quot;
            &quot;--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt &quot;
            &quot;--keyfile=/etc/ssl/private/server.key &quot;
            &quot;-b 0.0.0.0:{port} &quot;"><pre class="notranslate"><code class="notranslate">        cmd = (
            "gunicorn "
            "-w {workers} "
            "--timeout {timeout} "
            "--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt "
            "--keyfile=/etc/ssl/private/server.key "
            "-b 0.0.0.0:{port} "
</code></pre></div>
<p dir="auto">It works. But I want to pass with arguments the values... in future updates I don't want to repeat the task.</p>
<p dir="auto">I modify the caravel binary, I add to options:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@manager.option(
    '-t', '--timeout', default=config.get(&quot;CARAVEL_WEBSERVER_TIMEOUT&quot;),
    help=&quot;Specify the timeout (seconds) for the gunicorn web server&quot;)
@manager.option(
    '-c', '--certfile', default=&quot;&quot;,
    help=&quot;Specify certificate path of https for the gunicorn web server&quot;)
@manager.option(
    '-k', '--keyfile', default=&quot;&quot;,
    help=&quot;Specify key path of https for the gunicorn web server&quot;)"><pre class="notranslate"><code class="notranslate">@manager.option(
    '-t', '--timeout', default=config.get("CARAVEL_WEBSERVER_TIMEOUT"),
    help="Specify the timeout (seconds) for the gunicorn web server")
@manager.option(
    '-c', '--certfile', default="",
    help="Specify certificate path of https for the gunicorn web server")
@manager.option(
    '-k', '--keyfile', default="",
    help="Specify key path of https for the gunicorn web server")
</code></pre></div>
<p dir="auto">And:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="   else:
        cmd = (
            &quot;gunicorn &quot;
            &quot;-w {workers} &quot;
            &quot;--timeout {timeout} &quot;
            &quot;--certfile={certfile} &quot;
            &quot;--keyfile={keyfile} &quot;
#           &quot;--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt &quot;
#           &quot;--keyfile=/etc/ssl/private/server.key &quot;
            &quot;-b 0.0.0.0:{port} &quot;
 #```

But didn't works.

The idea to post this issues is share the hack and if someone wants to able https in a better way help me to make a better hack and pass arguments from command line."><pre class="notranslate"><code class="notranslate">   else:
        cmd = (
            "gunicorn "
            "-w {workers} "
            "--timeout {timeout} "
            "--certfile={certfile} "
            "--keyfile={keyfile} "
#           "--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt "
#           "--keyfile=/etc/ssl/private/server.key "
            "-b 0.0.0.0:{port} "
 #```

But didn't works.

The idea to post this issues is share the hack and if someone wants to able https in a better way help me to make a better hack and pass arguments from command line.
</code></pre></div>