1. Confirm configuration persistence: Verify that changes to the GeoServer configuration are correctly saved and not reset upon restart. This might involve modifying the global.xml file directly or using persistent environment variables.
2. Use external storage for configurations: Store configuration files outside of the GeoServer container or instance and link them back using symbolic links or configuration management tools.
3. Automate configuration application: Create a startup script that reapplies the desired settings every time the GeoServer restarts.
We can do the following:
Update GeoServer configuration files:
Locate the global.xml file in the GeoServer data directory along with other configuration files like wfs and wms XML files that are available
Set the WFS download limit to 0 and ensure the changes are saved:
<wfs>
<maxFeatures>0</maxFeatures>
</wfs>
The above must be added to the global.xml file
. Automate settings on restart:
Create a startup script that re-applies the desired settings.
Example script:
#!/bin/bash
# Script to set WFS limit to 0
echo "Setting WFS download limit to 0"
xmlstarlet ed -u "/global/wfs/downloadLimit" -v "0" /path/to/global.xml
Hi @meomancer
Here are my suggestions for #643
1. Confirm configuration persistence: Verify that changes to the GeoServer configuration are correctly saved and not reset upon restart. This might involve modifying the
global.xml
file directly or using persistent environment variables. 2. Use external storage for configurations: Store configuration files outside of the GeoServer container or instance and link them back using symbolic links or configuration management tools. 3. Automate configuration application: Create a startup script that reapplies the desired settings every time the GeoServer restarts.We can do the following:
Update GeoServer configuration files:
global.xml
file in theGeoServer
data directory along with other configuration files like wfs and wms XML files that are availableThe above must be added to the
global.xml
file. Automate settings on restart:
Hope this helps
cc @tharanathkartoza