Content
You are here:
Openproject Docker - how to set prefix? "RAILS_RELATIVE_URL_ROOT=/openproject" or SERVER_PATH_PREFIX=/openproject" don't work
Added by Victor Laza about 7 years ago
Hello,
I am using the Docker image openproject/community:7 and need to make it available via proxy to /openproject and setting ENV variables “RAILS_RELATIVE_URL_ROOT=/openproject” or SERVER_PATH_PREFIX=/openproject" does not work.
How can I achieve this?
Thank you in advance.
Replies (3)
Hi,
same problem. Any ideas?
Best regards,
Henrik
Hey,
as I read here (https://community.openproject.com/topics/6764) and on other sites, the root path has to be predefined before compiling openproject.
I am struggeling with the same problem as I want to use Openproject docker container behind a nginx reverse proxy.
I would really appreciate it if this path would be made configurable in a future release (e.g. via env. variable to be useable with docker). If the webserver would be separate, this change would be very easy…but the architecture is as it is…
Regards,
Patrick
UPDATE:
I managed it with a workaround: As I use a DynDns domain, I just registered a new host that is pointing to the same IP address. Nginx then uses the “Server {…}” part in the config where the “server_name” equals the domain name.
But that may not be helpful if you want/ have to use only one domain.
I was able to make this work ( replace /openproject with your base url)
build the docker image