[fixes #11734] standing up docker compose stack on a port different than 80#11736
[fixes #11734] standing up docker compose stack on a port different than 80#11736ricardogsilva wants to merge 1 commit intoGeoNode:masterfrom
Conversation
…erent than 80 This preserves port information, which is useful for having correct links being generated by the GeoNode API
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #11736 +/- ##
==========================================
- Coverage 62.97% 62.96% -0.01%
==========================================
Files 875 875
Lines 52573 52573
Branches 6610 6610
==========================================
- Hits 33107 33104 -3
- Misses 17944 17946 +2
- Partials 1522 1523 +1 |
|
This SO answer summarizes cases when
|
|
I'm not really sure why the codecov check is failing with a coverage drop of 0.01% as this PR only changes a configuration file in docker-related stuff - as far as I am aware there are no tests that would cover this. But please let me know if there is some additional action that I should take in this regard |
This PR includes a small change to the nginx-related
geonode.conf.envsubstfile. It replaces usage of NGINX's$hostvariable with$http_host.As mentioned in #11734, the
$hostvariable does not preserve port information, which means that the current configuration does not allow the django service to know what was the original port from which outside requests came from - and therefore the GeoNode API is not able to generate correct URLs, which in turn means the UI is not functional.This is really only a problem if the system maintainer wants to have GeoNode running on a port different from
80.Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
[ ] New unit tests have been added covering the changes, unless there is an explanation on why the tests are not necessary/implemented[ ] Commits changing the settings, UI, existing user workflows, or adding new functionality, need to include documentation updates[ ] Commits adding new texts do use gettext and have updated .po / .mo files (without location infos)Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.