New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify how to use APP_BASE and APP_FULL_BASE_URL #174
Comments
@johanneskastl I see you have figured this out from the other thread, but if you have not yet found the examples provided in config file of the passbolt_api repo they are here: https://github.com/passbolt/passbolt_api/blob/master/config/passbolt.default.php |
@garrettboone Thanks for the link. This at least clarifies that the But it still does not answer, if I prepared a PR to improve the documentation, I would be glad if you could have a look at #176 |
see #175 (comment) |
"APP_BASE" is a folder on the server. Variables with "URL" in the name are related to the URL. I think you are confusing the term "directory" with url "path". |
Hi @garrettboone I might be confusing things, yes. That is why I would like to improve the documentation on that. :-) It boils down to this: |
@johanneskastl Just to confirm, the See https://community.passbolt.com/t/passbolt-install-in-a-subfolder/2885/5 Though they still used a folder, NGINX can handle the rewriting of the path. |
@johanneskastl do you need the /passbolt/ path to continue to show? Or, is it enough for you if that path gets re-written so it does not show.? For example if you add this to your NGINX config it will cause the url to be rewritten from
This assumes that users can access the host url on it's own (example.com). So, if you need the
This fools the app into thinking it's installed in a |
Hi @garrettboone Thanks for the long and detailed answer. I would need the As I am using the docker container, I cannot modify the application (or move it) inside the docker container, except via environment variables. Hence I thought I could solve this using As this is being served behind a Traefik as reverse proxy, I am currently trying to get it to do the magic. I'll try to translate your nginx example, but this might fail, as I cannot move the webroot to |
The forum can help. There are many ways to handle it. |
Hi! Would it be enough to publish a better readme section regarding these env variables APP_BASE and APP_FULL_BASE_URL? |
I was trying to set up a PoC for Passbolt today and came across the documentation for the environment variables
APP_BASE
andAPP_FULL_BASE_URL
.It would be great to have this clarified with some examples, because I was not sure:
Do I need to set both of them?
APP_BASE
to e.g./passbolt/
andAPP_FULL_BASE_URL
tohttps://example.com/passbolt/
?Or is the
APP_BASE
automatically added to theAPP_FULL_BASE_URL
variable?I had lots of funny errors, sometimes links contained
/passbolt/passbolt/...
, sometimes the links did contain nothing at all. And I did not find the documentation clear enough to find my way through.If you can explain the basics, I can also come up with a PR.
Thanks in advance!
The text was updated successfully, but these errors were encountered: