fix(wger): try some fixes (#3010)

* chore(dashdot): add some envs

* fix(wger): try some fixes
This commit is contained in:
Stavros Kois
2022-06-29 10:21:16 +03:00
committed by GitHub
parent 5cee0f60c2
commit f635a30cc3
6 changed files with 26 additions and 18 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ name: wger
sources: sources:
- https://github.com/wger-project/wger - https://github.com/wger-project/wger
- https://github.com/wger-project/docker - https://github.com/wger-project/docker
version: 0.0.3 version: 0.0.4
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- life - life
+2 -9
View File
@@ -81,13 +81,6 @@ questions:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: site_url
label: "SITE_URL"
description: "eg. https://wger.mydomain.com"
schema:
type: string
required: true
default: ""
- variable: sync_exercises_on_startup - variable: sync_exercises_on_startup
label: "SYNC_EXERCISES_ON_STARTUP" label: "SYNC_EXERCISES_ON_STARTUP"
schema: schema:
@@ -378,13 +371,13 @@ questions:
description: "The groupID this App of the user running the application" description: "The groupID this App of the user running the application"
schema: schema:
type: int type: int
default: 0 default: 1000
- variable: fsGroup - variable: fsGroup
label: "fsGroup" label: "fsGroup"
description: "The group that should own ALL storage." description: "The group that should own ALL storage."
schema: schema:
type: int type: int
default: 568 default: 1000
# Include{podSecurityContextAdvanced} # Include{podSecurityContextAdvanced}
# Include{resources} # Include{resources}
+11 -3
View File
@@ -12,8 +12,9 @@ securityContext:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
podSecurityContext: podSecurityContext:
runAsUser: 0 runAsUser: 1000
runAsGroup: 0 runAsGroup: 1000
fsGroup: 1000
env: env:
DJANGO_DB_ENGINE: "django.db.backends.postgresql" DJANGO_DB_ENGINE: "django.db.backends.postgresql"
@@ -42,8 +43,8 @@ env:
TIME_ZONE: "{{ .Values.TZ }}" TIME_ZONE: "{{ .Values.TZ }}"
# True, not true # True, not true
WGER_USE_GUNICORN: "True" WGER_USE_GUNICORN: "True"
# User Defined
SITE_URL: "{{ .Values.wger.site_url }}" SITE_URL: "{{ .Values.wger.site_url }}"
# User Defined
FROM_EMAIL: "{{ .Values.wger.from_email }}" FROM_EMAIL: "{{ .Values.wger.from_email }}"
EXERCISE_CACHE_TTL: "{{ .Values.wger.exercise_cache_ttl }}" EXERCISE_CACHE_TTL: "{{ .Values.wger.exercise_cache_ttl }}"
EMAIL_HOST: "{{ .Values.wger.email_host }}" EMAIL_HOST: "{{ .Values.wger.email_host }}"
@@ -58,6 +59,7 @@ envFrom:
name: '{{ include "tc.common.names.fullname" . }}-wger' name: '{{ include "tc.common.names.fullname" . }}-wger'
wger: wger:
# Where the backend will listen. Leave this as is, unless nginx is removed
site_url: "http://localhost:8000" site_url: "http://localhost:8000"
sync_exercises_on_startup: false sync_exercises_on_startup: false
download_exercise_images_on_startup: false download_exercise_images_on_startup: false
@@ -141,6 +143,11 @@ additionalContainers:
ports: ports:
- containerPort: 80 - containerPort: 80
name: main name: main
securityContext:
runAsUser: 0
runAsGroup: 1000
readOnlyRootFilesystem: false
runAsNonRoot: false
volumeMounts: volumeMounts:
- name: wger-config - name: wger-config
mountPath: "/etc/nginx/conf.d/default.conf" mountPath: "/etc/nginx/conf.d/default.conf"
@@ -177,3 +184,4 @@ postgresql:
redis: redis:
enabled: true enabled: true
existingSecret: "rediscreds" existingSecret: "rediscreds"
redisUsername: "default"
+1 -1
View File
@@ -19,7 +19,7 @@ name: dashdot
sources: sources:
- https://github.com/MauriceNino/dashdot - https://github.com/MauriceNino/dashdot
- https://hub.docker.com/r/mauricenino/dashdot - https://hub.docker.com/r/mauricenino/dashdot
version: 1.0.6 version: 1.0.7
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- media - media
+9 -3
View File
@@ -107,6 +107,12 @@ questions:
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: DASHDOT_ALWAYS_SHOW_PERCENTAGES
label: "DASHDOT_ALWAYS_SHOW_PERCENTAGES"
description: "To always show the current percentage of each graph in the top-left corner."
schema:
type: boolean
default: false
- variable: oswidgetsettings - variable: oswidgetsettings
label: "OS Widget Settings" label: "OS Widget Settings"
schema: schema:
@@ -114,9 +120,9 @@ questions:
default: false default: false
show_subquestions_if: true show_subquestions_if: true
subquestions: subquestions:
- variable: DASHDOT_DISABLE_HOST - variable: DASHDOT_SHOW_HOST
label: "DASHDOT_DISABLE_HOST" label: "DASHDOT_SHOW_HOST"
description: "If you want to hide the host part in the server widget" description: "If you want to show the host part in the server widget"
schema: schema:
type: boolean type: boolean
default: false default: false
+2 -1
View File
@@ -24,7 +24,8 @@ env:
# DASHDOT_ACCEPT_OOKLA_EULA: true # DASHDOT_ACCEPT_OOKLA_EULA: true
# DASHDOT_USE_IMPERIAL: false # DASHDOT_USE_IMPERIAL: false
# DASHDOT_DISABLE_INTEGRATIONS: false # DASHDOT_DISABLE_INTEGRATIONS: false
# DASHDOT_DISABLE_HOST: false # DASHDOT_SHOW_HOST: true
# DASHDOT_ALWAYS_SHOW_PERCENTAGES: false
# DASHDOT_OS_LABEL_LIST: "os,arch,up_since" # DASHDOT_OS_LABEL_LIST: "os,arch,up_since"
# DASHDOT_OS_WIDGET_GROW: "1.5" # DASHDOT_OS_WIDGET_GROW: "1.5"
# DASHDOT_OS_WIDGET_MIN_WIDTH: "300" # DASHDOT_OS_WIDGET_MIN_WIDTH: "300"