Conversation
|
@giohappy good from my side. |
|
This issue seems to be wide spread and there are different solutions:
Both would work, but I tend to pick the |
|
I'd also prefer the changes proposed in GeoNode/geonode#11736, (regardless of being the author of that PR 😜) as they seem adequate for fixing the issue and are just a small modification of a single line in a config file. WRT this PR, I would rather prefer the number of configuration variables for GeoNode to decrease, so adding yet another one is not the way, in my opinion. |
|
I haven't the opportunity to test the If a custom host is needed it generally means that we are forwarding from anothe gateway / reverse proxy. In that case I guess the expected result is to have the oroginal http header forwarded automatically as is, without having to configure it. The only concern is that |
@giohappy maybe this could be done by just setting
MDN documentation on
Do you know cases other than HTTP 1.0 where |
My comment was to agree with the proposal from @ricardogsilva, but it needs testing. Ok for the required host header. Nginx is designed to cover the edge cases, but I think we can assume the more usual case. |
|
Closing in favor of #53 where conflicts have been resolved |
Nginx configuration uses
$hostvariable that doesn't provide custom ports, causing errors withrequest.build_absolute_url. This PR aims to fix providing also non-standard port specified asHTTP_PORT/HTTPS_PORT.Related issues: