Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Cannot change the database host in geofence-datasource-ovr.properties.j2 geonode/geoserver:2.23.0 #94

Open
geogeek11 opened this issue Aug 25, 2023 · 0 comments

Comments

@geogeek11
Copy link

geogeek11 commented Aug 25, 2023

I have to use a dockerized geonode 4.1.2 but with an external DB. I have changed the .env file accordingly and the Geoserver stores but the geofence kept not working.

After some research, I found that I can edit the file /templates/geofence/geofence-datasource-ovr.properties.j2 in the geonode/geoserver container so to override the file geofence-datasource-ovr.properties in the geoserver datadir, but this file is part of the image.

This is the initial value of geofenceDataSource.url in the file with the database host "db" hardcoded:
geofenceDataSource.url=jdbc:postgresql://db:5432/{{ GEONODE_GEODATABASE }}

I want to make the database host as a parameter from the .env file by replacing the geofenceDataSource.url with the following one :

geofenceDataSource.url=jdbc:postgresql://{{ DATABASE_HOST }}:5432/{{ GEONODE_GEODATABASE }}

Please could you release a new version of the image with this edit, as I don't have access to the source code of image geonode/geoserver:2.23.0

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

No branches or pull requests

1 participant