|
| 1 | +--- |
| 2 | +apiVersion: v1 |
| 3 | +kind: ConfigMap |
| 4 | +metadata: |
| 5 | + name: matrix-config |
| 6 | + namespace: apps |
| 7 | + annotations: |
| 8 | + argocd.argoproj.io/sync-wave: "1" |
| 9 | +data: |
| 10 | + homeserver.yaml: | |
| 11 | + server_name: "matrix.ildoc.it" |
| 12 | + public_baseurl: "https://matrix.ildoc.it" |
| 13 | + |
| 14 | + listeners: |
| 15 | + - port: 8008 |
| 16 | + tls: false |
| 17 | + type: http |
| 18 | + x_forwarded: true |
| 19 | + bind_addresses: ['0.0.0.0'] |
| 20 | + resources: |
| 21 | + - names: [client, federation] |
| 22 | + compress: false |
| 23 | +
|
| 24 | + # Database - usa env vars |
| 25 | + database: |
| 26 | + name: psycopg2 |
| 27 | + args: |
| 28 | + user: ${POSTGRES_USER} |
| 29 | + password: ${POSTGRES_PASSWORD} |
| 30 | + database: ${POSTGRES_DB} |
| 31 | + host: ${POSTGRES_HOST} |
| 32 | + port: ${POSTGRES_PORT} |
| 33 | + cp_min: 5 |
| 34 | + cp_max: 10 |
| 35 | +
|
| 36 | + # Redis - usa env vars con username |
| 37 | + redis: |
| 38 | + enabled: true |
| 39 | + host: ${SYNAPSE_REDIS_HOST} |
| 40 | + port: ${SYNAPSE_REDIS_PORT} |
| 41 | + password: ${SYNAPSE_REDIS_PASSWORD} |
| 42 | +
|
| 43 | + log_config: "/data/log.config" |
| 44 | + media_store_path: "/data/media_store" |
| 45 | + max_upload_size: "50M" |
| 46 | + max_image_pixels: "32M" |
| 47 | + url_preview_enabled: false |
| 48 | + |
| 49 | + enable_registration: false |
| 50 | + enable_registration_without_verification: false |
| 51 | + registration_requires_token: false |
| 52 | + |
| 53 | + # Usa env vars per i secret |
| 54 | + registration_shared_secret: ${REGISTRATION_SHARED_SECRET} |
| 55 | + macaroon_secret_key: ${MACAROON_SECRET_KEY} |
| 56 | + form_secret: ${FORM_SECRET} |
| 57 | + |
| 58 | + enable_3pid_lookup: false |
| 59 | + allow_public_rooms_without_auth: false |
| 60 | + allow_public_rooms_over_federation: false |
| 61 | + |
| 62 | + rc_message: |
| 63 | + per_second: 0.2 |
| 64 | + burst_count: 10 |
| 65 | + |
| 66 | + rc_registration: |
| 67 | + per_second: 0.17 |
| 68 | + burst_count: 3 |
| 69 | + |
| 70 | + rc_login: |
| 71 | + address: |
| 72 | + per_second: 0.17 |
| 73 | + burst_count: 3 |
| 74 | + account: |
| 75 | + per_second: 0.17 |
| 76 | + burst_count: 3 |
| 77 | + failed_attempts: |
| 78 | + per_second: 0.17 |
| 79 | + burst_count: 3 |
| 80 | + |
| 81 | + federation_domain_whitelist: [] |
| 82 | + signing_key_path: "/data/keys/signing.key" |
| 83 | + |
| 84 | + trusted_key_servers: |
| 85 | + - server_name: "matrix.org" |
| 86 | + |
| 87 | + report_stats: false |
| 88 | + enable_metrics: true |
| 89 | + metrics_port: 9000 |
| 90 | +
|
| 91 | + log.config: | |
| 92 | + version: 1 |
| 93 | + |
| 94 | + formatters: |
| 95 | + precise: |
| 96 | + format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s' |
| 97 | + |
| 98 | + handlers: |
| 99 | + console: |
| 100 | + class: logging.StreamHandler |
| 101 | + formatter: precise |
| 102 | + stream: ext://sys.stdout |
| 103 | + |
| 104 | + loggers: |
| 105 | + synapse.storage.SQL: |
| 106 | + level: INFO |
| 107 | + |
| 108 | + root: |
| 109 | + level: INFO |
| 110 | + handlers: [console] |
| 111 | + |
| 112 | + disable_existing_loggers: false |
0 commit comments