Skip to content
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

Adding of a property for VIVO base url for running VIVO behind Apache server #3698

Open
chenejac opened this issue May 16, 2022 · 1 comment · May be fixed by #4011
Open

Adding of a property for VIVO base url for running VIVO behind Apache server #3698

chenejac opened this issue May 16, 2022 · 1 comment · May be fixed by #4011
Milestone

Comments

@chenejac
Copy link
Contributor

Is your feature request related to a problem? Please describe.
José Luis Martín Muñoz reported via Slack:
"I have a question about the mail that users get when a new account is created. The problem is in the building of the URL to reclaim the account: the deployment is ok with the name of the host (https://researchportal.uc3m.es/ in our case), but the link begins with http://localhost:8080/accounts/createPassword... that obviously provokes a 404 when clicked by the user in his/her mail.
I found that this link is built in UserAccountsAddPageStrategy (method buildCreatePasswordLink):
URL context = new URL(vreq.getRequestURL().toString());
I don't know if is a configuration of the environment (I'm talking also with system guys in the university) or something in VIVO (and that's why I'm writing here)."

Describe the solution you'd like
Adding a property in runtime.properties for VIVO base url, to make it separated from deployment environment

Describe alternatives you've considered
It might be resolved by a system administrator, some instructions are available at https://wiki.lyrasis.org/display/VIVODOC113x/Running+VIVO+behind+an+Apache+server

@litvinovg
Copy link
Collaborator

AJP Proxy can be used. In that case domain would be provided to the application and link would be correct

ProxyPass ajp://internal_ip:8009/webapp_name/
ProxyPassReverse ajp://internal_ip:8009/webapp_name/

@ghost ghost mentioned this issue Mar 3, 2023
@chenejac chenejac added this to the v1.15 milestone May 9, 2023
@chenejac chenejac modified the milestones: v1.15, v1.16 Dec 7, 2023
@chenejac chenejac linked a pull request Oct 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants