From b775019744aef7a1bb0b403c3dca80fb8ed99d72 Mon Sep 17 00:00:00 2001 From: Daniel Sy Date: Tue, 3 Jun 2025 16:54:06 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=89=20Add=20SSL=20certificate?= =?UTF-8?q?=20configuration=20for=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds configuration for SSL certificate in the deployment settings by introducing environment variables and volume mounts for the Elasticsearch certificate. This enhancement improves security by ensuring that the application can properly utilize SSL certificates for secure communication. --- .../stacks/forgejo/forgejo-server/values.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/template/stacks/forgejo/forgejo-server/values.yaml b/template/stacks/forgejo/forgejo-server/values.yaml index e2b65b8..63bdf04 100644 --- a/template/stacks/forgejo/forgejo-server/values.yaml +++ b/template/stacks/forgejo/forgejo-server/values.yaml @@ -17,6 +17,22 @@ persistence: test: enabled: false +deployment: + env: + - name: SSL_CERT_FILE + value: /etc/elasticsearch/elasticsearch.cer + +extraVolumeMounts: + - mountPath: /etc/elasticsearch + name: elasticsearch-cert-volume + readOnly: true + +extraVolumes: + - name: elasticsearch-cert-volume + configMap: + defaultMode: 420 + name: elasticsearch-cert + gitea: additionalConfigFromEnvs: - name: FORGEJO__storage__MINIO_ACCESS_KEY_ID