GeoNode / geonode-docker

Django base images for GeoNode
Other
9 stars 33 forks source link

nginx uses hardcoded mount positions #37

Closed etj closed 4 months ago

etj commented 4 months ago

File nginx/geonode.conf.envsubst contains hardcoded directories under /mnt/volumes/statics instead of MEDIA_ROOT and STATIC_ROOT:

https://github.com/GeoNode/geonode-docker/blob/642f05c0e1a4c999c596829e19773cca2a968e1b/docker/nginx/geonode.conf.envsubst#L64-L65

https://github.com/GeoNode/geonode-docker/blob/642f05c0e1a4c999c596829e19773cca2a968e1b/docker/nginx/geonode.conf.envsubst#L76-L77

etj commented 4 months ago

Please note that deafult nginx entrypoint would run an envsubst on all the files with a given suffix (can be customized via NGINX_ENVSUBST_TEMPLATE_SUFFIX).

Anyway we need some other initializations, so we're just grabbing the way env vars are selected.

https://github.com/nginxinc/docker-nginx/pull/232/files#diff-88112c737f168bfc706c617bce1b48184ad80f6160265377184d097817aade27