From 49f8ad10466184976e759e6440b0f3e02265f781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gschwind?= Date: Tue, 19 Sep 2023 10:41:37 +0200 Subject: [PATCH 1/2] Populate default-sample.cfg with all possible configuration options --- default-sample.cfg | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/default-sample.cfg b/default-sample.cfg index 19908d040..b99ca16f6 100644 --- a/default-sample.cfg +++ b/default-sample.cfg @@ -60,6 +60,15 @@ workdir=workdir maxprocesses=30 parallelprocesses=2 storagetype=file +temp_path=/tmp +processes_path= +allowedinputpaths= +workdir=/tmp +sethomedir=false +cleantempdir=true +storage_copy_function=copy +default_mimetype=text/xml +json_indent=2 # hardcoded default : tempfile.gettempdir() #temp_path=/tmp @@ -95,6 +104,8 @@ json_indent=2 [processing] mode=default +path=/somepath +drmaa_native_specification= # hardcoded default: os.path.dirname(os.path.realpath(sys.argv[0])) #path= From 7f339187adc05ab0af6a7d69fffc8d47965d134f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gschwind?= Date: Tue, 19 Sep 2023 11:02:39 +0200 Subject: [PATCH 2/2] Add documentation in default-sample.cfg --- default-sample.cfg | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/default-sample.cfg b/default-sample.cfg index b99ca16f6..359882877 100644 --- a/default-sample.cfg +++ b/default-sample.cfg @@ -60,14 +60,35 @@ workdir=workdir maxprocesses=30 parallelprocesses=2 storagetype=file -temp_path=/tmp + +# hardcoded default : tempfile.gettempdir() +; temp_path=/tmp + processes_path= +# list of allowed input paths (file url input) seperated by ':' allowedinputpaths= -workdir=/tmp + +# hardcoded default : tempfile.gettempdir() +; workdir= + +# If this flag is enabled it will set the HOME environment for each process to +# its current workdir (a temp folder). sethomedir=false + +# If this flag is true PyWPS will remove the process temporary workdir after +# process has finished. cleantempdir=true + +# File storage outputs can be copied, moved or linked from the workdir to the +# output folder. +# Allowed functions: "copy", "move", "link" (hardcoded default "copy") storage_copy_function=copy + +# Handles the default mimetype for requests. +# valid options: "text/xml", "application/json" default_mimetype=text/xml + +# Default indentation used for json data responses. json_indent=2 # hardcoded default : tempfile.gettempdir() @@ -104,7 +125,11 @@ json_indent=2 [processing] mode=default -path=/somepath + +# hardcoded default: os.path.dirname(os.path.realpath(sys.argv[0])) +; path= + +# https://github.com/natefoo/slurm-drmaa drmaa_native_specification= # hardcoded default: os.path.dirname(os.path.realpath(sys.argv[0]))