Files
revoltchat/Revolt.toml.tmpl

169 lines
3.8 KiB
Cheetah

[hosts]
app = "https://{{ env "DOMAIN" }}"
api = "https://{{ env "DOMAIN" }}/api"
events = "wss://{{ env "DOMAIN" }}/ws"
autumn = "https://{{ env "DOMAIN" }}/autumn"
january = "https://{{ env "DOMAIN" }}/january"
[database]
mongodb = "mongodb://database"
redis = "redis://redis/"
[rabbit]
host = "rabbit"
port = 5672
username = "rabbituser"
password = "rabbitpass"
[api]
[api.registration]
invite_only = {{ env "INVITE_ONLY_ENABLED" }}
{{ if eq (env "EMAIL_VERIFICATION_ENABLED") "true" }}
[api.smtp]
host = "{{ env "SMTP_HOST" }}"
username = "{{ env "SMTP_USERNAME" }}"
password = "{{ secret "smtp_password" }}"
from_address = "{{ env "SMTP_FROM_ADDRESS" }}"
reply_to = "{{ env "SMTP_REPLY_TO" }}"
port = {{ env "SMTP_PORT" }}
use_tls = {{ env "SMTP_USE_TLS" }}
{{ end }}
[api.security]
authifier_shield_key = ""
voso_legacy_token = ""
trust_cloudflare = false
{{ if eq (env "SECURITY_CAPTCHA_ENABLED") "true" }}
[api.security.captcha]
hcaptcha_key = "{{ secret "hcaptcha_key" }}"
hcaptcha_sitekey = "{{ secret "hcaptcha_sitekey" }}"
{{ end }}
[api.workers]
max_concurrent_connections = 50
[api.users]
[pushd]
production = true
mass_mention_chunk_size = 200
exchange = "revolt.notifications"
message_queue = "notifications.origin.message"
mass_mention_queue = "notifications.origin.mass_mention"
fr_accepted_queue = "notifications.ingest.fr_accepted"
fr_received_queue = "notifications.ingest.fr_received"
generic_queue = "notifications.ingest.generic"
ack_queue = "notifications.process.ack"
[pushd.vapid]
private_key = "{{ secret "private_key" }}"
public_key = "{{ secret "public_key" }}"
{{ if eq (env "NOTIFICATIONS_FCM_ENABLED") "true" }}
[pushd.fcm]
queue = "notifications.outbound.fcm"
key_type = ""
project_id = ""
private_key_id = ""
private_key = ""
client_email = ""
client_id = ""
auth_uri = ""
token_uri = ""
auth_provider_x509_cert_url = ""
client_x509_cert_url = ""
{{ end }}
{{ if eq (env "NOTIFICATIONS_APN_ENABLED") "true" }}
[pushd.apn]
sandbox = false
queue = "notifications.outbound.apn"
pkcs8 = ""
key_id = ""
team_id = ""
{{ end }}
[files]
webp_quality = 80.0
blocked_mime_types = ["application/vnd.microsoft.portable-executable", "application/vnd.android.package-archive"]
clamd_host = "{{ env "SECURITY_CLAMV_HOST" }}"
encryption_key = "{{ secret "file_encrypt_token" }}"
production = true
[files.limit]
min_file_size = 1
min_resolution = [1, 1]
max_mega_pixels = 40
max_pixel_side = 10_000
[files.preview]
attachments = [1280, 1280]
avatars = [128, 128]
backgrounds = [1280, 720]
icons = [128, 128]
banners = [480, 480]
emojis = [128, 128]
[files.s3]
endpoint = "http://minio:9000"
path_style_buckets = false
region = "minio"
access_key_id = "minioautumn"
secret_access_key = "minioautumn"
default_bucket = "revolt-uploads"
[features]
webhooks_enabled = {{ env "NOTIFICATIONS_WEBOOKS_ENABLED" }}
mass_mentions_send_notifications = {{ env "NOTIFICATIONS_MASS_MENTIONS_PUSH_NOTIF" }}
mass_mentions_enabled = {{ env "NOTIFICATIONS_MASS_MENTIONS_ENABLED" }}
[features.limits]
[features.limits.global]
group_size = 100
message_embeds = 5
message_replies = 5
message_reactions = 20
server_emoji = 100
server_roles = 200
server_channels = 200
new_user_hours = 72
body_limit_size = 20_000_000
[features.limits.new_user]
outgoing_friend_requests = 5
bots = 2
message_length = 2000
message_attachments = 5
servers = 50
[features.limits.new_user.file_upload_size_limit]
attachments = 20_000_000
avatars = 4_000_000
backgrounds = 6_000_000
icons = 2_500_000
banners = 6_000_000
emojis = 500_000
[features.limits.default]
outgoing_friend_requests = 10
bots = 5
message_length = 2000
message_attachments = 5
servers = 100
[features.limits.default.file_upload_size_limit]
attachments = 20_000_000
avatars = 4_000_000
backgrounds = 6_000_000
icons = 2_500_000
banners = 6_000_000
emojis = 500_000
[features.advanced]
process_message_delay_limit = 5