-
Notifications
You must be signed in to change notification settings - Fork 49
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
Allow to configure the prefix path #80
Comments
For my local environment I can't use a dedicated sub-domain for docat, so I would like to reverse-proxy it on a sub-path. Adding such prefix path option would be really great! |
I tried doing this, but I didn't manage to get it to work either. What I tried:
If anyone has another idea on how to fix that, you're welcome to try. Also here are the sources I followed: |
@reglim thanks for your effort to try and find a solution. I found this page about sub-site topic, but not sure if it provides any new ideas: https://muffinman.io/blog/react-router-subfolder-on-server/ What exactly did you try in #4 with nginx config? The above page suggests that the HashRouter should work (without specifying |
Thanks for the article, I'll try that out and get back to you. I tried something like this, though I'm not sure that this is even remotely correct:
|
@reglim Thanks, this is what I also tried for the first option in the article I shared, but didn't work as expected. |
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
Ok, so I managed to get it to work in using a build arg for docat. The exact instructions are in the ReadMe. I'd be glad if you could try it out and get back to me to tell me whether or not it works properly. |
@reglim Thanks for the update, tried it with a docker image built from the new branch as per instructions and configured a reverse proxy on my main nginx for https like below:
and ... works :) Initially I missed that I need to configure the It could be useful to tag the locally created docker image with the prefix path used, i.e. adding |
Yes, I tried including the Prefix Path in the "homepage": "$PREFIX_PATH", I think that this is a rather niche usecase compared to local development, so I think no prefix path is not such a bad default. Also, I think that tagging the docker image is a good idea. I'll add it to the ReadMe : ) |
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
You can now add a prefix path for docat (eg. https://domain.com/docat as the root url). Just follow the instructions in the readme fixes: #80
Hi @palto42 @edupo, a quick update. @randombenj, @fliiiix and I have thought about the Pull Request that is still open, and come to the conclusion that this prefix path option adds complexity to docat that we don't think is necessary for most use cases. |
@RGLim Thanks, I understand your rationale. I will try to avoid prefix path, forking will be too much effort. |
I tried to configure docat after my other Nginx server where Jenkins is running. The root path of the server is reserved also.
It would be great to allow to set somewhere the prefix path of the app so it would be possible to use it from a different path:
The backend works without issue, but the web interface has troubles dealing with that. You can enable part of the frontend by rebuilding the container while modifying the
vue.config.js
to containpublicPath: '/docat/'
but that does not make it entirely work.The text was updated successfully, but these errors were encountered: