This commit is contained in:
2023-08-12 18:27:40 +02:00
parent f6640378ba
commit 3ba3808ad5
3 changed files with 49 additions and 47 deletions

View File

@@ -6,41 +6,11 @@ metadata:
name: wildduck name: wildduck
description: null description: null
options: options:
issuer: sub-domain:
default: letsencrypt-prod default: mail
examples: examples:
- letsencrypt-prod - mail
type: string type: string
backups:
default:
enable: false
endpoint: ''
key-id-key: s3-id
secret-key: s3-secret
secret-name: backup-settings
examples:
- enable: false
endpoint: ''
key-id-key: s3-id
secret-key: s3-secret
secret-name: backup-settings
properties:
enable:
default: false
type: boolean
endpoint:
default: ''
type: string
key-id-key:
default: s3-id
type: string
secret-key:
default: s3-secret
type: string
secret-name:
default: backup-settings
type: string
type: object
redis: redis:
default: default:
exporter: exporter:
@@ -79,6 +49,16 @@ options:
items: items:
type: string type: string
type: array type: array
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain:
default: your-company
examples:
- your-company
type: string
images: images:
default: default:
haraka: haraka:
@@ -242,25 +222,45 @@ options:
type: string type: string
type: object type: object
type: object type: object
ingress-class:
default: traefik
examples:
- traefik
type: string
sub-domain:
default: mail
examples:
- mail
type: string
domain-name: domain-name:
default: your_company.com default: your_company.com
examples: examples:
- your_company.com - your_company.com
type: string type: string
domain: backups:
default: your-company default:
enable: false
endpoint: ''
key-id-key: s3-id
secret-key: s3-secret
secret-name: backup-settings
examples: examples:
- your-company - enable: false
endpoint: ''
key-id-key: s3-id
secret-key: s3-secret
secret-name: backup-settings
properties:
enable:
default: false
type: boolean
endpoint:
default: ''
type: string
key-id-key:
default: s3-id
type: string
secret-key:
default: s3-secret
type: string
secret-name:
default: backup-settings
type: string
type: object
ingress-class:
default: traefik
examples:
- traefik
type: string type: string
dependencies: dependencies:
- dist: null - dist: null

View File

@@ -92,6 +92,8 @@ resource "kubectl_manifest" "prj_mongo" {
roles: roles:
- db: zonemta - db: zonemta
name: readWrite name: readWrite
- db: ${var.component}
name: readWrite
scramCredentialsSecretName: "${var.instance}-${var.component}-mongo-scram" scramCredentialsSecretName: "${var.instance}-${var.component}-mongo-scram"
EOF EOF
} }

View File

@@ -116,7 +116,7 @@ resource "kubectl_manifest" "zonemta_config" {
# Database configuration # Database configuration
# this file is loaded when NODE_ENV=production # this file is loaded when NODE_ENV=production
# MongoDB connection string # MongoDB connection string
mongo="mongodb://${var.component}:${local.mongo-password}@${var.instance}-${var.component}-mongo-svc.${var.namespace}.svc:27017/zonemta" mongo="mongodb://zonemta:${local.mongo-password}@${var.instance}-${var.component}-mongo-svc.${var.namespace}.svc:27017/zonemta"
# Redis connection string # Redis connection string
redis="redis://${var.instance}-${var.component}-redis.${var.namespace}.svc:6379/2" redis="redis://${var.instance}-${var.component}-redis.${var.namespace}.svc:6379/2"
# Database name for ZoneMTA data in MongoDB. In most cases it should be the same as in the connection string # Database name for ZoneMTA data in MongoDB. In most cases it should be the same as in the connection string