You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.5 KiB

  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: {{ include "mastodon.fullname" . }}-env
  5. labels:
  6. {{- include "mastodon.labels" . | nindent 4 }}
  7. data:
  8. {{- if .Values.postgresql.enabled }}
  9. DB_HOST: {{ template "mastodon.postgresql.fullname" . }}
  10. {{- else }}
  11. DB_HOST: {{ .Values.postgresql.postgresqlHostname }}
  12. {{- end }}
  13. DB_NAME: {{ .Values.postgresql.postgresqlDatabase }}
  14. DB_POOL: {{ .Values.mastodon.sidekiq.concurrency | quote }}
  15. DB_PORT: "5432"
  16. DB_USER: {{ .Values.postgresql.postgresqlUsername }}
  17. DEFAULT_LOCALE: {{ .Values.mastodon.locale }}
  18. {{- if .Values.elasticsearch.enabled }}
  19. ES_ENABLED: "true"
  20. ES_HOST: {{ template "mastodon.elasticsearch.fullname" . }}-master
  21. ES_PORT: "9200"
  22. {{- end }}
  23. LOCAL_DOMAIN: {{ .Values.mastodon.local_domain }}
  24. # https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior
  25. MALLOC_ARENA_MAX: "2"
  26. NODE_ENV: "production"
  27. RAILS_ENV: "production"
  28. REDIS_HOST: {{ template "mastodon.redis.fullname" . }}-master
  29. REDIS_PORT: "6379"
  30. {{- if .Values.mastodon.smtp.auth_method }}
  31. SMTP_AUTH_METHOD: {{ .Values.mastodon.smtp.auth_method }}
  32. {{- end }}
  33. {{- if .Values.mastodon.smtp.ca_file }}
  34. SMTP_CA_FILE: {{ .Values.mastodon.smtp.ca_file }}
  35. {{- end }}
  36. {{- if .Values.mastodon.smtp.delivery_method }}
  37. SMTP_DELIVERY_METHOD: {{ .Values.mastodon.smtp.delivery_method }}
  38. {{- end }}
  39. {{- if .Values.mastodon.smtp.domain }}
  40. SMTP_DOMAIN: {{ .Values.mastodon.smtp.domain }}
  41. {{- end }}
  42. {{- if .Values.mastodon.smtp.enable_starttls_auto }}
  43. SMTP_ENABLE_STARTTLS_AUTO: {{ .Values.mastodon.smtp.enable_starttls_auto | quote }}
  44. {{- end }}
  45. {{- if .Values.mastodon.smtp.from_address }}
  46. SMTP_FROM_ADDRESS: {{ .Values.mastodon.smtp.from_address }}
  47. {{- end }}
  48. {{- if .Values.mastodon.smtp.login }}
  49. SMTP_LOGIN: {{ .Values.mastodon.smtp.login }}
  50. {{- end }}
  51. {{- if .Values.mastodon.smtp.openssl_verify_mode }}
  52. SMTP_OPENSSL_VERIFY_MODE: {{ .Values.mastodon.smtp.openssl_verify_mode }}
  53. {{- end }}
  54. {{- if .Values.mastodon.smtp.password }}
  55. SMTP_PASSWORD: {{ .Values.mastodon.smtp.password }}
  56. {{- end }}
  57. {{- if .Values.mastodon.smtp.port }}
  58. SMTP_PORT: {{ .Values.mastodon.smtp.port | quote }}
  59. {{- end }}
  60. {{- if .Values.mastodon.smtp.reply_to }}
  61. SMTP_REPLY_TO: {{ .Values.mastodon.smtp.reply_to }}
  62. {{- end }}
  63. {{- if .Values.mastodon.smtp.server }}
  64. SMTP_SERVER: {{ .Values.mastodon.smtp.server }}
  65. {{- end }}
  66. {{- if .Values.mastodon.smtp.tls }}
  67. SMTP_TLS: {{ .Values.mastodon.smtp.tls | quote }}
  68. {{- end }}
  69. STREAMING_CLUSTER_NUM: {{ .Values.mastodon.streaming.workers | quote }}