From 1fadb4d4b96deafa328c5d5d7c3226d931b4987b Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Wed, 26 Mar 2025 03:08:37 +0100 Subject: [PATCH] Add new config blog with secure false smtp --- apps/templates/blog-folder.yaml | 21 ++++++++++++++ apps/templates/blog-helm.yaml | 11 ++++++++ blog/cm.yaml | 49 +++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 apps/templates/blog-folder.yaml create mode 100644 blog/cm.yaml diff --git a/apps/templates/blog-folder.yaml b/apps/templates/blog-folder.yaml new file mode 100644 index 0000000..6a6e0a8 --- /dev/null +++ b/apps/templates/blog-folder.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: immich + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://github.com/rubenhensen/k8scd.git + targetRevision: HEAD + path: blog + destination: + server: https://kubernetes.default.svc + namespace: blog + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: true \ No newline at end of file diff --git a/apps/templates/blog-helm.yaml b/apps/templates/blog-helm.yaml index f2dc9e8..a96937e 100644 --- a/apps/templates/blog-helm.yaml +++ b/apps/templates/blog-helm.yaml @@ -47,6 +47,17 @@ spec: ## NOTE: When it's set, the `smtpPassword` parameter is ignored ## smtpExistingSecret: hensenio-smtp + # Mount the ConfigMap as a volume + extraVolumes: + - name: ghost-config + configMap: + name: ghost-config + + # Mount the volume at the specific file path + extraVolumeMounts: + - name: ghost-config + mountPath: /opt/bitnami/ghost/config.production.json + subPath: config.production.json ## @param allowEmptyPassword Allow the container to be started with blank passwords allowEmptyPassword: false resourcesPreset: "micro" diff --git a/blog/cm.yaml b/blog/cm.yaml new file mode 100644 index 0000000..1d70cb3 --- /dev/null +++ b/blog/cm.yaml @@ -0,0 +1,49 @@ +# ghost-config.yaml - Apply this with ArgoCD +apiVersion: v1 +kind: ConfigMap +metadata: + name: ghost-config + labels: + app: ghost +data: + config.production.json: | + { + "database": { + "client": "mysql", + "connection": { + "host": "blog-helm-mysql", + "port": 3306, + "database": "bitnami_ghost", + "user": "bn_ghost", + "password": "hq&UiS9T%QuabRbW", + "ssl": false + } + }, + "url": "https://blog.hensen.io/", + "server": { + "port": 2368, + "host": "0.0.0.0" + }, + "mail": { + "transport": "SMTP", + "from": "ruben.hensen@protonmail.com", + "options": { + "host": "smtp.hostinger.com", + "port": 465, + "secure": false, + "auth": { + "user": "ruben@hensen.io", + "pass": "q8R^v2QmZqiv&DH%6x29qaWf" + } + } + }, + "logging": { + "transports": [ + "file" + ] + }, + "process": "local", + "paths": { + "contentPath": "/opt/bitnami/ghost/content" + } + } \ No newline at end of file