planka icon indicating copy to clipboard operation
planka copied to clipboard

HTTPS error

Open Pokamaka opened this issue 1 year ago • 1 comments

Hello! I installed and configured the bar as written in the manuals, but ran into the following problem. When setting up a virtual host, specifying port 443 and adding a SSL certificate in the site console, it displays the following error Mixed Content: The page at 'https://domain//' was loaded over HTTPS, but requested an insecure script 'http://localhost(ip)1337/static/js/main.5cf99e6c.js'. This request has been blocked; the content must be served over HTTPS.

I am attaching the descriptions of the virtual host on Apache2

<VirtualHost *:443>

    ServerName domain

    SSLProxyEngine on
    SSLCertificateFile ///
    SSLCertificateKeyFile ///
    SSLCACertificateFile ////

    Protocols h2 http/1.1

    RewriteEngine On
    RewriteCond %{HTTP:Upgrade} =websocket [NC]
    RewriteRule /(.*)            ws://localhost:1337/$1 [P,L]

    ProxyPreserveHost On
    ProxyRequests Off
            ProxyPass /.well-known !
            ProxyPassReverse /.well-known !
            ProxyPass /robots.txt !
            ProxyPassReverse /robots.txt !
            ProxyPass / http://localhost:1337/
            ProxyPassReverse / http://localhost:1337/

</VirtualHost>

Thank you in advance

Pokamaka avatar Aug 10 '23 16:08 Pokamaka

Hi, it seems you forgot to change the BaseURL in the docker-compose or .env file

The BaseURL must match the domain, you want to use including http:// or https://

daniel-hiller avatar Sep 23 '23 17:09 daniel-hiller