2021-02-09 23:28:01 +00:00
|
|
|
mastodon_enabled: false
|
|
|
|
mastodon_publish: true
|
2023-06-10 03:20:10 +00:00
|
|
|
mastodon_chart_ref: "ghp/mastodon"
|
2021-02-09 23:28:01 +00:00
|
|
|
mastodon_use_external_db: true
|
|
|
|
mastodon_short_name: "mastodon"
|
|
|
|
mastodon_enable_elasticsearch: true
|
2021-03-25 18:33:58 +00:00
|
|
|
mastodon_admin_email: "mastodon@{{ mail_domain | default(domain) }}"
|
2021-02-09 23:28:01 +00:00
|
|
|
mastodon_default_values:
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
2023-04-08 19:26:06 +00:00
|
|
|
ingressClassName: "{{ external_ingress_class if mastodon_publish else internal_ingress_class }}"
|
2021-02-09 23:28:01 +00:00
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
2022-07-31 03:28:07 +00:00
|
|
|
kubernetes.io/tls-acme: "true"
|
2021-02-09 23:28:01 +00:00
|
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
2021-08-09 14:15:49 +00:00
|
|
|
hosts:
|
|
|
|
- host: "{{ mastodon_short_name }}.{{ domain }}"
|
|
|
|
paths:
|
2022-07-31 03:28:07 +00:00
|
|
|
- path: /
|
|
|
|
pathType: ImplementationSpecific
|
2021-02-09 23:28:01 +00:00
|
|
|
tls:
|
|
|
|
- secretName: "{{ mastodon_short_name }}.{{ domain }}-tls"
|
|
|
|
hosts:
|
|
|
|
- "{{ mastodon_short_name }}.{{ domain }}"
|
2021-08-09 14:15:49 +00:00
|
|
|
|
|
|
|
mastodon:
|
|
|
|
createAdmin:
|
2021-02-09 23:28:01 +00:00
|
|
|
enabled: true
|
2021-08-09 14:15:49 +00:00
|
|
|
username: "{{ mastodon_admin_user | default(mastodon_admin_username) | default('mastodon') }}"
|
|
|
|
password: "{{ mastodon_admin_pass | default(mastodon_admin_password) }}"
|
|
|
|
email: "{{ mastodon_admin_email }}"
|
|
|
|
|
|
|
|
locale: en
|
|
|
|
local_domain: "{{ mastodon_short_name }}.{{ domain }}"
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
secret_key_base: "{{ mastodon_vapid_public_key_base64 | hash('sha256') }}"
|
|
|
|
otp_secret: "{{ mastodon_vapid_public_key_base64 | hash('sha256') | hash('sha256') }}"
|
|
|
|
vapid:
|
|
|
|
private_key: "{{ mastodon_vapid_private_key_base64 | b64decode }}"
|
|
|
|
public_key: "{{ mastodon_vapid_public_key_base64 | b64decode }}"
|
2024-06-01 00:42:30 +00:00
|
|
|
activeRecordEncryption:
|
|
|
|
primaryKey: "{{ mastodon_primary_key_secret }}"
|
|
|
|
deterministicKey: "{{ mastodon_deterministic_key_secret }}"
|
|
|
|
keyDerivationSalt: "{{ mastodon_key_derivation_salt_secret }}"
|
|
|
|
|
2021-08-09 14:15:49 +00:00
|
|
|
smtp:
|
|
|
|
auth_method: login
|
|
|
|
ca_file:
|
|
|
|
delivery_method: smtp
|
|
|
|
domain: "{{ domain }}"
|
2023-04-08 19:26:06 +00:00
|
|
|
enable_starttls: false
|
2021-08-09 14:15:49 +00:00
|
|
|
from_address: "{{ mastodon_admin_email }}"
|
|
|
|
login: "{{ mastodon_admin_user | default(mastodon_admin_username) | default('mastodon') }}"
|
|
|
|
openssl_verify_mode: false
|
|
|
|
password: "{{ mastodon_ldap_pass | default(mastodon_ldap_password) }}"
|
|
|
|
port: 465
|
|
|
|
reply_to: "{{ mastodon_admin_email }}"
|
|
|
|
server: "{{ mail_short_name | default('mail') }}.{{ domain }}"
|
|
|
|
tls: true
|
|
|
|
persistence:
|
|
|
|
assets:
|
|
|
|
# ReadWriteOnce is more widely supported than ReadWriteMany, but limits
|
|
|
|
# scalability, since it requires the Rails and Sidekiq pods to run on the
|
|
|
|
# same node.
|
|
|
|
storageClassName: "{{ mastodon_assets_storage | default('nfs-ssd') }}"
|
|
|
|
accessMode: "{{ mastodon_assets_storage_mode | default('ReadWriteMany') }}"
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: "{{ mastodon_assets_size | default('10Gi') }}"
|
|
|
|
system:
|
|
|
|
storageClassName: "{{ mastodon_system_storage | default('nfs-hdd') }}"
|
|
|
|
accessMode: "{{ mastodon_system_storage_mode | default('ReadWriteMany') }}"
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: "{{ mastodon_system_size | default('100Gi') }}"
|
2021-02-09 23:28:01 +00:00
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
enabled: "{{ mastodon_enable_elasticsearch }}"
|
|
|
|
master:
|
|
|
|
name: master
|
|
|
|
## Number of master-eligible node(s) replicas to deploy
|
|
|
|
##
|
|
|
|
replicas: 1
|
|
|
|
coordinating:
|
|
|
|
## Number of coordinating-only node(s) replicas to deploy
|
|
|
|
##
|
|
|
|
replicas: 1
|
|
|
|
data:
|
|
|
|
name: data
|
|
|
|
## Number of data node(s) replicas to deploy
|
|
|
|
##
|
|
|
|
replicas: 1
|
|
|
|
|
|
|
|
postgresql:
|
|
|
|
enabled: false
|
2021-08-09 14:15:49 +00:00
|
|
|
postgresqlHostname: "{{ namespace }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local"
|
2023-04-08 19:26:06 +00:00
|
|
|
auth:
|
|
|
|
database: mastodon
|
|
|
|
username: "{{ mastodon_db_username }}"
|
|
|
|
password: "{{ mastodon_db_password }}"
|
|
|
|
|
2021-02-09 23:28:01 +00:00
|
|
|
redis:
|
2021-08-09 14:15:49 +00:00
|
|
|
architecture: standalone
|
2021-02-09 23:28:01 +00:00
|
|
|
enabled: true
|
2021-08-09 14:15:49 +00:00
|
|
|
auth:
|
|
|
|
password: "{{ mastodon_vapid_public_key_base64 | hash('md5') }}"
|