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

Instructions for configuring reference validator with forwarding proxy #978

Closed
mwjsanders opened this issue Jul 4, 2023 · 2 comments
Closed
Assignees
Labels
deployment This issue is about the deployment of the Docker image, WAR file or operational environment user-to-fix Problem is present on user side

Comments

@mwjsanders
Copy link

mwjsanders commented Jul 4, 2023

Because of issues #972, INSPIRE-MIF/helpdesk-registry#42 and to reduce the many calls to the inspire registry, we try to configure a locally running reference validator in docker (as described in the release notes) to use a proxy cache. We have created a proxy cache using nginx.
We now need to configure this proxy cache as a forwarding proxing in the reference validator, but there are no clear instructions for this. Setting the http_proxy environment variable in the reference validator container does does not work.

Please provide instructions on how to configure a forwarding proxy for the inspire reference validator running in a docker container.

@fabiovinci fabiovinci added under analysis deployment This issue is about the deployment of the Docker image, WAR file or operational environment labels Jul 4, 2023
@DanielMartinPerezdeLeon
Copy link
Collaborator

Dear @mwjsanders ,

thank you for reaching out to us with your issue.
As far as we understand you are trying to create a reverse proxy in order to manage the requests from the ETF to the external resources (INSPIRE Registry).
For the existing set-up of the INSPIRE Reference Validator, Nginx is not intended to be used as a caching proxy (while Nginx does have caching capabilities, its primary role is that of a web server).

In order to manage issues with a reverse proxy, you can make use of the installed instance of Squid + Apache within the INSPIRE Reference Validator Docker, configured with INSPIRE URLs.

By using this Squid instance within your INSPIRE Reference Validator Docker, it should resolve any cache redirection issues you may encounter with INSPIRE resources, and there should be no need for any additional cache proxy configurations.

Additionally, please note that using another Nginx instance with the ETF Docker could potentially misconfigure the original Nginx used in the Docker, which might hinder the proper functioning of your instance.

Finally, we suggest to use the latest version of the INSPIRE Reference Validator (v2023.3) in order to be kept up to date.

If you have any further questions or concerns, please don't hesitate to contact us.

Regards,

@fabiovinci fabiovinci added user-to-fix Problem is present on user side and removed under analysis labels Nov 8, 2023
@fabiovinci
Copy link
Collaborator

Dear user,

we hope the solution provided helps you to resolve the issue.
So we close this issue.
If there are any further questions or problems, please do not hesitate to reopen it or create a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment This issue is about the deployment of the Docker image, WAR file or operational environment user-to-fix Problem is present on user side
Projects
None yet
Development

No branches or pull requests

4 participants