Add manual ghost

This commit is contained in:
Ruben Hensen
2025-03-26 12:16:38 +01:00
parent 36228e2cb7
commit db52e1dda1
9 changed files with 513 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: ghost-config-prod
namespace: ghost-blog
spec:
refreshInterval: "15m"
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: ghost-config-prod
creationPolicy: Owner
data:
- secretKey: config.production.json
remoteRef:
key: kv/ghost-blog/config
template:
engine: gotmpl
data: |
{
"url": "https://blog.hensen.io",
"admin": {
"url": "https://blog.hensen.io"
},
"server": {
"port": 2368,
"host": "0.0.0.0"
},
"mail": {
"transport": "SMTP",
"from": "{{ .email_from }}",
"options": {
"service": "{{ .email_service }}",
"host": "{{ .email_host }}",
"port": {{ .email_port }},
"secure": {{ .email_secure }},
"auth": {
"user": "{{ .email_user }}",
"pass": "{{ .email_password }}"
}
}
},
"logging": {
"transports": [
"stdout"
]
},
"database": {
"client": "mysql",
"connection":
{
"host": "ghost-mysql-service",
"user": "{{ .db_user }}",
"password": "{{ .db_password }}",
"database": "{{ .db_name }}",
"port": "3306"
}
},
"process": "local",
"paths": {
"contentPath": "/home/nonroot/app/ghost/content"
}
}