Docker install with subfolder

I’m trying to install Passbolt with docker using passbolt/passbolt:2.13.1-debian with a subfolder.

I need the URL to be http://host/passbolt. The container is configured using environment variables, and APP_BASE is set to /passbolt.

The main content appears to load fine, but the CSS and content like the favicon do not.

These yield a 404:

However, I can get to those if I remove the subdirectory:

There are various posts out there which cover similar issues with using subdirectories, but they’re all a bit different in one way or another. From what I can tell, this was a known bug but was supposed to have been resolved in a previous release and should be supported by simply setting the APP_BASE environment variable.

I figured it out. I had to modify /etc/nginx/conf.d/default.conf to include “rewrite ^/passbolt(/.*)$ $1 last;” immediately before the “location” blocks, as well as set the APP_BASE environment variable to “/passbolt”. After that, it works fine.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.