-
Notifications
You must be signed in to change notification settings - Fork 2
/
ssp-config.ini
49 lines (42 loc) · 2.05 KB
/
ssp-config.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[information]
name = Sugarizer School Portal
description = Web Interface for Sugarizer School Portal
[web]
port = 8080
[security]
min_password_size = 4
max_age = 172800000
https = false
certificate_file = ../server.crt
key_file = ../server.key
strict_ssl = false
salt_rounds = 10
verification = {{.Values.verification.enabled}}
{{- if eq .Values.verification.enabled true}}
smtp_port = {{ if .Values.verification.smtpPort }}{{.Values.verification.smtpPort}}{{ else }}false{{ end }}
smtp_host = {{ if .Values.verification.smtpHost }}{{.Values.verification.smtpHost}}{{ else }}false{{ end }}
smtp_tls_secure = {{ if .Values.verification.smtpTlsSsecure }}{{.Values.verification.smtpTlsSsecure}}{{ else }}false{{ end }}
smtp_user = {{ if .Values.verification.smtpUser }}{{.Values.verification.smtpUser}}{{ else }}false{{ end }}
smtp_pass = {{ if .Values.verification.smtpPass }}{{.Values.verification.smtpPass}}{{ else }}false{{ end }}
smtp_email = {{ if .Values.verification.smtpEmail }}{{.Values.verification.smtpEmail}}{{ else }}false{{ end }}
{{- end }}
[database]
server = {{ if .Values.database.replicaset }}{{.Values.database.databaseUrl}}-mongodb-replicaset-0.{{.Values.database.databaseUrl}}-mongodb-replicaset.default.svc.cluster.local:27017,{{.Values.database.databaseUrl}}-mongodb-replicaset-1.{{.Values.database.databaseUrl}}-mongodb-replicaset.default.svc.cluster.local:27017,{{.Values.database.databaseUrl}}-mongodb-replicaset-2.{{.Values.database.databaseUrl}}-mongodb-replicaset.default.svc.cluster.local:27017{{ else }}{{.Values.database.databaseUrl}}{{ end }}
port = 27017
name = {{.Values.sspNamespace}}
waitdb = 1
replicaset = {{.Values.database.replicaset}}
[collections]
users = users
deployments = deployments
[system]
helm_binary = helm
kubectl_binary = kubectl
chart_path = ../sugarizer-chart/
replicaset = {{.Values.database.replicaset}}
databaseUrl = {{.Values.database.databaseUrl}}
hostName = {{.Values.deployment.host}}
[log]
level = 1
[webhooks]
slack_webhook_url = {{ if .Values.webhook.slackWebhookUrl }}{{.Values.webhook.slackWebhookUrl}}{{ else }}false{{ end }}