闭社主体 forked from https://github.com/tootsuite/mastodon
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.

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