Issue with accessing Passbolt from different network ports due to the hardcoded APP_FULL_BASE_URL

Hi there everyone.

Unfortunately, @max suggestion also didn’t work out.

After long time, and several attempts, I was able to solve this issue by basically ignoring the instructions to include the hostname as the APP_FULL_BASE_URL environment variable, by commenting that line on the docker-compose file.

As stated in the documentation of the app.default.php of passbolt_api Github reporsotory:

fullBaseUrl - A base URL to use for absolute links. When set to false (default) CakePHP generates required value based on HTTP_HOST environment variable.

This means that by keeping that variable commented in the docker-compose file, results in its default value (false), making the server use the HTTP_HOST variable instead.

Besides this, I had to configure Nginx Proxy Manager in front of it, and set up an advanced configuration location that forwards the requests to the Passbolt server, replacing the HOST header with $http_host.

location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass https://:4433;
}

Thank you once more for the help, and specially for creating and mantaining Passbolt! :slightly_smiling_face:

1 Like