diff --git a/charts/stable/send/Chart.yaml b/charts/stable/send/Chart.yaml index b58af7bcc15..efecfd4f7dd 100644 --- a/charts/stable/send/Chart.yaml +++ b/charts/stable/send/Chart.yaml @@ -16,6 +16,13 @@ dependencies: alias: "" tags: [] import-values: [] + - name: redis + version: 11.1.6 + repository: https://deps.truecharts.org + condition: redis.enabled + alias: "" + tags: [] + import-values: [] deprecated: false description: A fork of Mozilla's Firefox Send.Mozilla discontinued Send, this fork is a community effort to keep the project up-to-date and alive. home: https://truecharts.org/charts/stable/send @@ -34,4 +41,4 @@ sources: - https://gitlab.com/timvisee/send - https://github.com/truecharts/charts/tree/master/charts/stable/send type: application -version: 4.1.10 +version: 4.2.0 diff --git a/charts/stable/send/questions.yaml b/charts/stable/send/questions.yaml index 43872f8dba7..bbe35de152c 100644 --- a/charts/stable/send/questions.yaml +++ b/charts/stable/send/questions.yaml @@ -16,59 +16,29 @@ questions: type: dict attrs: - variable: BASE_URL - label: "BASE_URL" - description: "Base URL" + label: "Base Url" + description: "URL where traffic will be served " schema: type: string default: "http://192.168.0.100:1443" - variable: MAX_FILE_SIZE - label: "MAX_FILE_SIZE" - description: "Max File Size (Bytes)" + label: "Max File Size" + description: "Maximum upload file size in bytes (defaults to 2147483648 aka 2GB)" schema: type: string default: "2147483648" - variable: MAX_EXPIRE_SECONDS - label: "MAX_EXPIRE_SECONDS" - description: "Max Expire Seconds" + label: "Max Expire Seconds" + description: "Maximum upload expiry time in seconds (defaults to 604800 aka 7 days)" schema: type: string default: "604800" - variable: MAX_DOWNLOADS - label: "MAX_DOWNLOADS" - description: "Max Downloads" + label: "Max Downloads" + description: "Maximum number of downloads (defaults to 100)" schema: type: string default: "100" - - variable: REDIS_HOST - label: "REDIS_HOST" - description: "Redis Host" - schema: - type: string - default: "192.168.0.100" - - variable: REDIS_PASSWORD - label: "REDIS_PASSWORD" - description: "Redis Password (If there is)" - schema: - type: string - default: "password" - - variable: REDIS_PORT - label: "REDIS_PORT" - description: "Redis Port" - schema: - type: string - default: "6379" - - variable: FILE_DIR - label: "FILE_DIR" - description: "FILEDIR" - schema: - type: string - default: "/uploads" - - variable: NODE_ENV - label: "NODE_ENV" - description: "NODEENV" - schema: - type: string - default: "production" # Include{serviceRoot} - variable: main label: "Main Service" @@ -97,8 +67,8 @@ questions: # Include{serviceList} # Include{persistenceRoot} - variable: uploadpath - label: "uploadpath Storage" - description: "Upload Path" + label: App Uploads Storage + description: "Stores the Application Uploads." schema: additional_attrs: true type: dict diff --git a/charts/stable/send/values.yaml b/charts/stable/send/values.yaml index 37818be1450..2538c150562 100644 --- a/charts/stable/send/values.yaml +++ b/charts/stable/send/values.yaml @@ -2,37 +2,54 @@ image: pullPolicy: IfNotPresent repository: registry.gitlab.com/timvisee/send tag: latest@sha256:1ee495161f176946e6e4077e17be2b8f8634c2d502172cc530a8cd5affd7078f -persistence: - uploadpath: - enabled: true - mountPath: /uploads -portal: - open: - enabled: true + securityContext: container: readOnlyRootFilesystem: false runAsGroup: 0 runAsUser: 0 + service: main: ports: main: + protocol: http port: 1443 - protocol: tcp - targetPort: 1443 + workload: main: podSpec: containers: main: env: + FILE_DIR: "{{ .Values.persistence.uploadpath.mountPath}}" + PORT: "{{ .Values.service.main.ports.main.port }}" BASE_URL: http://192.168.0.100:1443 - FILE_DIR: /uploads MAX_DOWNLOADS: "100" MAX_EXPIRE_SECONDS: "604800" MAX_FILE_SIZE: "2147483648" NODE_ENV: production - REDIS_HOST: 192.168.0.100 - REDIS_PASSWORD: password + REDIS_HOST: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "rediscreds" }}' + key: plainhost + REDIS_PASSWORD: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "rediscreds" }}' + key: redis-password + REDIS_USER: "{{ .Values.redis.redisUsername }}" REDIS_PORT: "6379" + +persistence: + uploadpath: + enabled: true + mountPath: /uploads + +redis: + enabled: true + +portal: + open: + enabled: true