From b48dfac28077f4bda391181df47cd2fed3a450b2 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sat, 9 Jul 2022 11:30:16 +0300 Subject: [PATCH] chore(projectsend): some UI fixes (#3103) --- charts/stable/projectsend/Chart.yaml | 2 +- charts/stable/projectsend/questions.yaml | 25 ++++++++++++++++-------- charts/stable/projectsend/values.yaml | 13 ++++++------ 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/charts/stable/projectsend/Chart.yaml b/charts/stable/projectsend/Chart.yaml index 4e5eff672fe..cef18ec2df3 100644 --- a/charts/stable/projectsend/Chart.yaml +++ b/charts/stable/projectsend/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 kubeVersion: ">=1.16.0-0" name: projectsend -version: 3.0.9 +version: 3.0.10 appVersion: "2021.12.10" description: Projectsend is a self-hosted application that lets you upload files and assign them to specific clients that you create yourself. type: application diff --git a/charts/stable/projectsend/questions.yaml b/charts/stable/projectsend/questions.yaml index b6ab95d4e7b..bf722318f8d 100644 --- a/charts/stable/projectsend/questions.yaml +++ b/charts/stable/projectsend/questions.yaml @@ -85,11 +85,18 @@ questions: attrs: - variable: MAX_UPLOAD label: "MAX_UPLOAD" - description: "MAX_UPLOAD" + description: "Maximum size (in mb.) that is allowed on each file to be uploaded." schema: type: int required: true default: 5000 + - variable: PHP_MAX_FILE_UPLOAD + label: "PHP_MAX_FILE_UPLOAD" + description: "The maximum number of files allowed to be uploaded simultaneously. " + schema: + type: int + required: true + default: 200 - variable: PHP_MEMORY_LIMIT label: "PHP_MEMORY_LIMIT" description: "PHP_MEMORY_LIMIT" @@ -97,13 +104,6 @@ questions: type: string required: true default: "512M" - - variable: PHP_MAX_FILE_UPLOAD - label: "PHP_MAX_FILE_UPLOAD" - description: "PHP_MAX_FILE_UPLOAD" - schema: - type: int - required: true - default: 200 # Include{containerConfig} - variable: service @@ -209,6 +209,15 @@ questions: type: dict attrs: # Include{persistenceBasic} +# Include{persistenceAdvanced} + - variable: data + label: "App Data Storage" + description: "Stores the Application Data." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} # Include{persistenceAdvanced} # Include{persistenceList} diff --git a/charts/stable/projectsend/values.yaml b/charts/stable/projectsend/values.yaml index 59a1e510cfa..3b3b2ffada2 100644 --- a/charts/stable/projectsend/values.yaml +++ b/charts/stable/projectsend/values.yaml @@ -39,7 +39,6 @@ mariadb: mariadbDatabase: projectsend existingSecret: "mariadbcreds" - installContainers: initconfig: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" @@ -63,25 +62,25 @@ installContainers: mountPath: "/config" command: ["/bin/sh", "-c"] args: - - > + - |- export configFile="/config/projectsend/sys.config.php"; if [ ! -f $configFile ]; then echo "Creating initial config file..."; - mkdir -p /config/projectsend + mkdir -p /config/projectsend; touch $configFile; - echo "> $configFile + echo "> $configFile; echo "# This is generated on initial setup of this TrueCharts App" >> $configFile; - echo "# Do not change below values, or DB connection will fail." >> $configFile + echo "# Do not change below values, or DB connection will fail." >> $configFile; echo "define('DB_DRIVER', 'mysql');" >> $configFile; echo "define('DB_NAME', '$DBNAME');" >> $configFile; echo "define('DB_HOST', '$DBHOST');" >> $configFile; echo "define('DB_USER', '$DBUSER');" >> $configFile; echo "define('DB_PASSWORD', '$DBPASS');" >> $configFile; + echo "define('MAX_FILESIZE', $MAX_UPLOAD);" >> $configFile; echo "define('TABLES_PREFIX', 'tbl_');" >> $configFile; - echo "# You can manually change below values if you like." >> $configFile + echo "# You can manually change below values if you like." >> $configFile; echo "define('SITE_LANG', 'en');" >> $configFile; - echo "define('MAX_FILESIZE',2048);" >> $configFile; echo "define('EMAIL_ENCODING', 'utf-8');" >> $configFile; echo "define('DEBUG', false);" >> $configFile; echo "# End of generated config values." >> $configFile;