Browse Source

Add option to enable single user mode (#19503)

closed-social-glitch-2
Kangwook Lee (이강욱) 2 years ago
committed by GitHub
parent
commit
223e152312
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions
  1. +3
    -0
      chart/templates/configmap-env.yaml
  2. +2
    -0
      chart/values.yaml

+ 3
- 0
chart/templates/configmap-env.yaml View File

@ -24,6 +24,9 @@ data:
{{- if .Values.mastodon.web_domain }} {{- if .Values.mastodon.web_domain }}
WEB_DOMAIN: {{ .Values.mastodon.web_domain }} WEB_DOMAIN: {{ .Values.mastodon.web_domain }}
{{- end }} {{- end }}
{{- if .Values.mastodon.singleUserMode }}
SINGLE_USER_MODE: "true"
{{- end }}
# https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior # https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior
MALLOC_ARENA_MAX: "2" MALLOC_ARENA_MAX: "2"
NODE_ENV: "production" NODE_ENV: "production"

+ 2
- 0
chart/values.yaml View File

@ -30,6 +30,8 @@ mastodon:
# Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation # Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation
# You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described # You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described
# web_domain: mastodon.example.com # web_domain: mastodon.example.com
# If set to true, the frontpage of your Mastodon server will always redirect to the first profile in the database and registrations will be disabled.
singleUserMode: false
persistence: persistence:
assets: assets:
# ReadWriteOnce is more widely supported than ReadWriteMany, but limits # ReadWriteOnce is more widely supported than ReadWriteMany, but limits

Loading…
Cancel
Save