SSL + Client Portal + Docker = Logo not loading?

I have deployed via docker compose and getting an error loading my logo on the client portal.

If I inspect the logo path is https://mydomain.tld:80 vs :443 as I have tried to set in the env and client portal settings. any insight would be great.

If I manually remove :80 it loads fine but unsure how to do that globally vs just in my local browser.

Hi,

@david do you have any suggestions?

Hi,
same problem here.
I fixed it for now, by adding a few lines to nginx configuration file:

    location /storage/ {
        root /var/www/html/public;
        autoindex off; # do not show directory content
        allow all; # allow access to all

        # allow only PNG files
        location ~ \.png$ {
            allow all;
            log_not_found off; # Optional: deactivate logging for files not found
        }

        # deny all other files
        location ~ .* {
            deny all;
        }
    }


I am not sure if this is a “state of the art” fix, and I am not aware of the risk it might create, but the logo loads for now.

Is anybody able to use this information to create an official fix for that bug?

BR
Mark

Thanks for sharing!

cc @david

Another weird thing in docker:

  1. create a new company
  2. add logo
    → logo not showing. I assumed there is still some tuning needed in nginx conf, but its not.

creating a new company set file permissions to 0500, so nginx is not allowed to access the logo.
you need to chmod 755 (recursive) over the app storage of the newly created company.

Hope this helps.
BR
Mark