File tree Expand file tree Collapse file tree 5 files changed +61
-1
lines changed Expand file tree Collapse file tree 5 files changed +61
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.1.3
18
+ version : 0.1.4
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : {{ include "discourse.fullname" . }}-config
5
+ labels :
6
+ {{- include "discourse.labels" . | nindent 4 }}
7
+ data :
8
+ RUBY_GC_HEAP_GROWTH_MAX_SLOTS : " 40000"
9
+ DISCOURSE_HOSTNAME : " {{ .Values.forum.hostname }}"
10
+ LANG : " en_US.UTF-8"
11
+ UNICORN_WORKERS : " {{ .Values.forum.workers }}"
12
+ DISCOURSE_FORCE_HTTPS : " true"
13
+ LETSENCRYPT_ACCOUNT_EMAIL : " {{ .Values.forum.letsencrypt.email }}"
14
+ DOCKER_HOST_IP : " 172.17.0.1"
15
+ RAILS_ENV : " production"
16
+ UNICORN_SIDEKIQS : " 1"
17
+ DISCOURSE_DB_HOST : " "
18
+ DISCOURSE_DB_PORT : " "
19
+ DISCOURSE_SMTP_ADDRESS : " {{ .Values.forum.mail.host }}"
20
+ DISCOURSE_SMTP_PORT : " {{ .Values.forum.mail.port }}"
21
+ RUBY_GC_HEAP_INIT_SLOTS : " 400000"
22
+ RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR : " 1.5"
23
+ DISCOURSE_DB_SOCKET : " /var/run/postgresql"
24
+ LETSENCRYPT_DIR : " /shared/letsencrypt"
25
+ DISCOURSE_DEVELOPER_EMAILS : " jakub.vysoky@ethereum.org,ligi@ethereum.org"
26
+ PATH : " /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
27
+ RUBY_VERSION : " 3.3.6"
28
+ PG_MAJOR : " 15"
29
+ RUBY_ALLOCATOR : " /usr/lib/libjemalloc.so"
30
+ LEFTHOOK : " 0"
31
+ DEBIAN_RELEASE : " bookworm"
32
+ LC_ALL : " en_US.UTF-8"
33
+ LANGUAGE : " en_US.UTF-8"
Original file line number Diff line number Diff line change
1
+ {{- if not .Values.forum.mail.existingSecret }}
2
+ apiVersion : v1
3
+ kind : Secret
4
+ metadata :
5
+ name : {{ include "discourse.fullname" . }}-smtp
6
+ labels :
7
+ {{- include "discourse.labels" . | nindent 4 }}
8
+ type : Opaque
9
+ data :
10
+ DISCOURSE_SMTP_USER_NAME : {{ .Values.forum.mail.user | b64enc | quote }}
11
+ DISCOURSE_SMTP_PASSWORD : {{ .Values.forum.mail.password | b64enc | quote }}
12
+ {{- end }}
Original file line number Diff line number Diff line change 41
41
{{- end }}
42
42
image : " {{ .Values.image.repository }}/{{ .Values.forum.name }}:{{ .Values.forum.version | default .Values.image.tag | default .Chart.AppVersion }}"
43
43
imagePullPolicy : {{ .Values.image.pullPolicy }}
44
+ envFrom :
45
+ - configMapRef :
46
+ name : {{ include "discourse.fullname" . }}-config
47
+ - secretRef :
48
+ name : {{ .Values.forum.mail.existingSecret | default (printf "%s-smtp" (include "discourse.fullname" .)) }}
44
49
ports :
45
50
- name : http
46
51
containerPort : 80
Original file line number Diff line number Diff line change @@ -17,6 +17,16 @@ image:
17
17
forum :
18
18
name : " default"
19
19
version : " latest"
20
+ hostname : " forum.discource.example"
21
+ workers : 4
22
+ letsencrypt :
23
+ email : john@doe.com
24
+ mail :
25
+ host : smtp.example.com
26
+ port : 587
27
+ user : mailuser
28
+ password : mailpass
29
+ # existingSecret: "" # Name of existing secret containing DISCOURSE_SMTP_USER_NAME and DISCOURSE_SMTP_PASSWORD
20
30
21
31
22
32
# Persistence configuration
You can’t perform that action at this time.
0 commit comments