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

Invalid URL message when accessing through proxy #55

Open
lonoak opened this issue Sep 30, 2024 · 1 comment
Open

Invalid URL message when accessing through proxy #55

lonoak opened this issue Sep 30, 2024 · 1 comment

Comments

@lonoak
Copy link

lonoak commented Sep 30, 2024

Hi,

I have been successfully testing indico with the latest code in master branch of the repository (updated a couple of weeks ago), both locally and using :8080, but I'm having a lot of trouble trying to make it work by configuring the name in a proxy in front of the nginx proxy to add TLS termination. The proxy in my case is based in apache, and I'm able to reach the nginx proxy, but am only seeing the 'Invalid URL' message, either if I let BASE_URL with localhost:8080 (and try to convert it in my front proxy), or if I use anything the real server name (https://indico.myserver.tld/). In other words, I think the line:

proxy_pass http://indico-web:59999;

...is not working when a proxy is before this proxy, and have no clue why (missing headers? failure to proxy the inner requests?).

Before posting this issue, I have been reading issues #43 and more recent #52, to no luck... and am a bit lost if my configuration is possible. To better explain what I'm trying to achieve:

[external load balancer/TLS terminator: https://indico.mydomain.tld:443] <----> [ nginx-proxy:8080 proxy pass] <----> [indico-web: 59999]

I know this is not a support forum, but I agree with user in #43 that a valid front configuration would be very helpful for those of us trying to use indico based in containers.

Thanks in advance, and please feel free to ask any questions or further information regarding my setup.

Jose.

@lonoak
Copy link
Author

lonoak commented Sep 30, 2024

Hi again,

just answering to myself it seems all I had to do was to properly set X-Forwarded-Host in both the external an internal proxy. According to the official documentation, this is explained here:

https://docs.getindico.io/en/stable/config/settings/#USE_PROXY

Will just keep this open, just in case there are any comments or remarks about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant