From 446e20723c56a93f5d9e54d364aef167ebe8409d Mon Sep 17 00:00:00 2001
From: Lubomir Dolezal <lubomir.bucek@eox.at>
Date: Mon, 28 Mar 2022 12:40:47 +0200
Subject: [PATCH] configure wcs maxsize with OWS_WCS_MAZSIZE=4096

---
 Dockerfile   | 1 +
 configure.sh | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 612f7f6..da46f90 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -77,6 +77,7 @@ ENV INSTANCE_ID="view-server_core" \
     COLLECT_STATIC="false" \
     REGISTRAR_REPLACE= \
     GDAL_PAM_ENABLED="NO" \
+    OWS_WCS_MAZSIZE="4096" \
     EOXS_LAYER_SUFFIX_SEPARATOR="__" \
     DEV="false" \
     ENABLE_HTTP_ACCESS="false"
diff --git a/configure.sh b/configure.sh
index f7c4da9..6b8558c 100755
--- a/configure.sh
+++ b/configure.sh
@@ -39,7 +39,7 @@
     sed -e "s,http_service_url=http://localhost:8000/ows,http_service_url=${APACHE_ALIAS}/ows," -i pvs_instance/conf/eoxserver.conf
     sed -e "s/resampling_method=average/resampling_method=near/" -i pvs_instance/conf/eoxserver.conf
     sed -e "s/image\/jp2,GDAL\/JPEG2000/#image\/jp2,GDAL\/JPEG2000/" -i pvs_instance/conf/formats.conf
-    # TODO maxsize...
+    sed -e "s/.*maxsize = 2048/maxsize = ${OWS_WCS_MAZSIZE}/" -i pvs_instance/conf/eoxserver.conf
 
     echo "EOXS_VALIDATE_IDS_NCNAME = False" >> pvs_instance/settings.py
     echo "EOXS_OPENSEARCH_RECORD_MODEL = 'eoxserver.resources.coverages.models.Product'" >> pvs_instance/settings.py
-- 
GitLab