From 304a8684592713b0bfb3c0a4539a05648be9ac8f Mon Sep 17 00:00:00 2001 From: sagit <36596628+Sagit-chu@users.noreply.github.com> Date: Sun, 14 Aug 2022 01:36:29 +0800 Subject: [PATCH] fix(gitea): Add WebHook config (#3463) --- charts/stable/gitea/Chart.yaml | 2 +- charts/stable/gitea/questions.yaml | 6 ++++++ charts/stable/gitea/templates/_secrets.tpl | 3 +++ charts/stable/gitea/values.yaml | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/charts/stable/gitea/Chart.yaml b/charts/stable/gitea/Chart.yaml index c88e04fd02c..80ce8fc0706 100644 --- a/charts/stable/gitea/Chart.yaml +++ b/charts/stable/gitea/Chart.yaml @@ -35,7 +35,7 @@ sources: - https://github.com/go-gitea/gitea - https://hub.docker.com/r/gitea/gitea/ type: application -version: 9.0.3 +version: 9.0.4 annotations: truecharts.org/catagories: | - GIT diff --git a/charts/stable/gitea/questions.yaml b/charts/stable/gitea/questions.yaml index 33c24006395..3a4bc14869e 100644 --- a/charts/stable/gitea/questions.yaml +++ b/charts/stable/gitea/questions.yaml @@ -61,6 +61,12 @@ questions: description: "Development" - value: "test" description: "Testing" + - variable: ALLOWED_HOST_LIST + label: "ALLOWED_HOST_LIST" + schema: + type: string + default: "127.0.0.1" + required: true - variable: customConfig group: "App Configuration" label: "Custom Configuration parameters" diff --git a/charts/stable/gitea/templates/_secrets.tpl b/charts/stable/gitea/templates/_secrets.tpl index 034f3de67da..37df8994b70 100644 --- a/charts/stable/gitea/templates/_secrets.tpl +++ b/charts/stable/gitea/templates/_secrets.tpl @@ -77,6 +77,9 @@ stringData: {{- end }} {{- end }} + [webhook] + ALLOWED_HOST_LIST = {{ .Values.config.ALLOWED_HOST_LIST }} + [server] APP_DATA_PATH = /data DOMAIN = {{ $DOMAIN }} diff --git a/charts/stable/gitea/values.yaml b/charts/stable/gitea/values.yaml index 54871b25c74..af6fad04c8a 100644 --- a/charts/stable/gitea/values.yaml +++ b/charts/stable/gitea/values.yaml @@ -120,6 +120,7 @@ oauth: config: APP_NAME: "Gitea: Git with a cup of tea" RUN_MODE: dev + ALLOWED_HOST_LIST: "127.0.0.1" customConfig: []