From dd044a11d87148b8eee53203357a128f0171de09 Mon Sep 17 00:00:00 2001 From: Tina_Azure <-> Date: Tue, 11 Jul 2023 18:55:32 +0200 Subject: [PATCH] Add submission file root path option to the specs and config --- .gitignore | 1 + setupdb.sh | 0 spec/spec.md | 1 + src/default-cavecomm.conf | 2 ++ 4 files changed, 4 insertions(+) mode change 100755 => 100644 setupdb.sh diff --git a/.gitignore b/.gitignore index 2531b6b..ca1646b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ cavecomm example.crt example.key .idea/ +log.txt diff --git a/setupdb.sh b/setupdb.sh old mode 100755 new mode 100644 diff --git a/spec/spec.md b/spec/spec.md index 07f50be..2a12b87 100644 --- a/spec/spec.md +++ b/spec/spec.md @@ -243,6 +243,7 @@ mandatory: emailServerAddress databaseConnectionString={postgresql://{user}:{password}@{host}:{port}/{database}} domain + submissionFileRootPath Path to a folder in which the freelancer submissions are stored Optional if CROW_ENABLE_SSL not defined sslCrtPath= diff --git a/src/default-cavecomm.conf b/src/default-cavecomm.conf index 2d6f694..2022eec 100644 --- a/src/default-cavecomm.conf +++ b/src/default-cavecomm.conf @@ -8,6 +8,7 @@ # emailPassword= # emailServerAddress= # domain= +# submissionFileRootPath= # Optional if CROW_ENABLE_SSL not defined # sslCrtPath= @@ -51,6 +52,7 @@ itemsPerPage=5; bruteForceMitigationLockSeconds=900; bruteForceMitigationAttempts=5; +submissionFileRootPath=./submissions; submissionMaxFileSizeMB=8; submissionMaxtotalStorageMB=16; submissionMaxStorageDurationH=24;