fix(send) add redis, gui housekeeping, and update env (#17530)

**Description**
add the redis sidecar, gui housekeeping, and update env section.
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [X] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [X] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97TheNoob
2024-01-27 00:22:34 +02:00
committed by GitHub
co-authored by Stavros Kois
parent 8ce59445f6
commit 30e0ac7d47
3 changed files with 47 additions and 53 deletions
+8 -1
View File
@@ -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
+10 -40
View File
@@ -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
+29 -12
View File
@@ -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