infrastructure/roles/mastodon/defaults/main.yml

84 lines
2.6 KiB
YAML

mastodon_install_location: /srv/mastodon
mastodon_domain: mastodon.example.com
mastodon_postgres_password: "{{ lookup('passwordstore', 'mastodon.example.com/database create=true') }}"
# The mastodon configuration (see mastodon documentation for a reference / the `templates/.env.production` file)
mastodon_config:
local_domain: "{{ mastodon_domain }}"
secret_key_base: undef
otp_secret: undef
ar_enc_deterministic_key: undef
ar_enc_derivation_salt: undef
ar_enc_primary_key: undef
vapid_private_key: undef
vapid_public_key: undef
smtp_server: localhost
smtp_login: undef
smtp_password: undef
smtp_from_address: mastodon@example.com
mastodon_streaming_containerimage: ghcr.io/mastodon/mastodon-streaming
mastodon_containerimage: ghcr.io/mastodon/mastodon
# renovate: depName=ghcr.io/mastodon/mastodon
mastodon_image_tag: "v4.3.3"
mastodon_nginx_containerimage: docker.io/nginxinc/nginx-unprivileged
# renovate: depName=docker.io/nginxinc/nginx-unprivileged
mastodon_nginx_image_tag: "1.27.3-alpine"
mastodon_postgres_containerimage: docker.io/library/postgres
# renovate: depName=docker.io/library/postgres
mastodon_postgres_image_tag: "17.2-alpine"
mastodon_redis_containerimage: docker.io/library/redis
# renovate: depName=docker.io/library/redis
mastodon_redis_image_tag: "7.4-alpine"
mastodon_elasticsearch_containerimage: docker.io/library/elasticsearch
# renovate: depName=docker.io/library/elasticsearch
mastodon_elasticsearch_image_tag: "7.17.26"
mastodon_selinux_level: "{{ omit }}"
mastodon_nginx_selinux_level: "{{ omit }}"
mastodon_postgres_selinux_level: "{{ omit }}"
mastodon_redis_selinux_level: "{{ omit }}"
mastodon_elasticsearch_selinux_level: "{{ omit }}"
## This will be used for the `mastodon_public_location` which will need to
## be accessed by the main mastodon containers and by nginx.
## Make sure it is accessible/compatible with `mastodon_selinux_level`
## and `mastodon_nginx_selinux_level`.
mastodon_public_selinux_level: "{{ omit }}"
mastodon_memory_low: 512m
mastodon_memory_high: 0
mastodon_swap_max: -1
mastodon_sidekiq_memory_low: 512m
mastodon_sidekiq_memory_high: 0
mastodon_sidekiq_swap_max: -1
mastodon_streaming_memory_low: 64m
mastodon_streaming_memory_high: 256m
mastodon_streaming_swap_max: -1
mastodon_nginx_memory_low: 32m
mastodon_nginx_memory_high: 64m
mastodon_nginx_swap_max: -1
mastodon_redis_memory_low: 128m
mastodon_redis_memory_high: 512m
mastodon_redis_swap_max: -1
mastodon_elasticsearch_low: 1024m
mastodon_elasticsearch_memory_high: 1536m
mastodon_elasticsearch_swap_max: -1
mastodon_postgres_memory_low: 512m
mastodon_postgres_memory_high: 0
mastodon_postgres_swap_max: -1