# BAD:
sendCopyToSparkasse: true
# BÄTTER:
sendDocumentCopyTo: marktfolge@sparkasse-musterhausen.de// BAD:
if (tenant == "musterbank") {
musterBankSpezialfunktion();
}
// GOOD:
if (tenantConfig.skipVerificationStep) {
skipVerification();
}schema:
### some special values
# optional, if you want to use the url-matching. this is a regex
hostnameToFindConfig: null
# optional, if you want to use blz matching
blz: null
# your own values
skipVerification: falseparent: ../_products/myproduct
skipVerification: trueGET :8080/<product>/byName/<tenant>
-> return the tenant config for that tenant
GET :8080/<product>/byUrl/<url>
-> return the tenant config matching the given url
GET :8080/<product>/byBrc/<brc>
-> return the tenant config matching the given bank routing code
(German: Bankleitzahl)Um dem Frontend eine Config mitzugeben, kann ein Public Schema definiert werden
schema:
theme: bumblebee
public:
- file: config.json
schema:
theme: '$theme'
GET :8085/<product>/(.*)
-> returns the file $1 for <product>, choosing the tenant
by the X-Forwarded-Host headerDie Tenant-Config kann dann (intern) so:
Der Pfad kann also direkt im Ingress an die Config weitergereicht werden
Slack-Channel #tenantconfig-support