provisioning-catalog/components/lemmy/cluster/templates/lemmy-configmap.yaml.j2

33 lines
1.1 KiB
Django/Jinja

# NOTE: This template creates a skeleton ConfigMap with placeholder values.
# _method_create-configmaps in lemmy-lib.sh overwrites this with the real
# DATABASE_URL (containing LEMMY_DB_PASSWORD) and PICTRS_API_KEY injected
# from the credentials secret. Do not remove this template — it ensures the
# ConfigMap resource exists before the deployments that mount it.
apiVersion: v1
kind: ConfigMap
metadata:
name: lemmy-config
namespace: {{ taskserv.namespace }}
labels:
app.kubernetes.io/name: lemmy-backend
app.kubernetes.io/managed-by: provisioning
data:
config.hjson: |
{
database: {
uri: "REPLACED_BY_INSTALL_SCRIPT"
}
hostname: "{{ taskserv.domain }}"
bind: "0.0.0.0"
port: 8536
tls_enabled: true
pictrs: {
url: "http://lemmy-pictrs.{{ taskserv.namespace }}.svc.libre-wuji.local:8080/"
api_key: "REPLACED_BY_INSTALL_SCRIPT"
}
email: {
smtp_server: "mail.librecloud.online:587"
smtp_from_address: "lemmy@librecloud.online"
tls_type: "starttls"
}
}