first commit
commit
50833108b9
@ -0,0 +1,3 @@
|
||||
matrix_key.pem
|
||||
server.*
|
||||
database_url
|
@ -0,0 +1,7 @@
|
||||
FROM matrixdotorg/dendrite-monolith
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY matrix_key.pem dendrite.yaml server.crt server.key database_url /etc/dendrite/
|
||||
RUN sed -i "s#DATABASE_URL#$(cat /etc/dendrite/database_url)#g" /etc/dendrite/dendrite.yaml
|
||||
RUN rm /etc/dendrite/database_url
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
@ -0,0 +1,174 @@
|
||||
version: 2
|
||||
|
||||
global:
|
||||
server_name: syui.cf
|
||||
well_known_server_name: "syui.cf:443"
|
||||
#well_known_client_name: "syui.cf:443"
|
||||
private_key: /etc/dendrite/matrix_key.pem
|
||||
key_validity_period: 168h0m0s
|
||||
trusted_third_party_id_servers:
|
||||
- matrix.org
|
||||
- vector.im
|
||||
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 100
|
||||
max_idle_conns: 5
|
||||
conn_max_lifetime: -1
|
||||
|
||||
jetstream:
|
||||
in_memory: false
|
||||
storage_path: /data/
|
||||
topic_prefix: Dendrite
|
||||
|
||||
metrics:
|
||||
enabled: false
|
||||
basic_auth:
|
||||
username: metrics
|
||||
password: metrics
|
||||
|
||||
dns_cache:
|
||||
enabled: true
|
||||
cache_size: 4000
|
||||
cache_lifetime: 300
|
||||
|
||||
app_service_api:
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
config_files: []
|
||||
|
||||
client_api:
|
||||
|
||||
registration_disabled: true
|
||||
registration_shared_secret: ""
|
||||
enable_registration_captcha: false
|
||||
recaptcha_public_key: ""
|
||||
recaptcha_private_key: ""
|
||||
recaptcha_bypass_secret: ""
|
||||
recaptcha_siteverify_api: ""
|
||||
|
||||
turn:
|
||||
turn_user_lifetime: ""
|
||||
turn_uris: []
|
||||
turn_shared_secret: ""
|
||||
turn_username: ""
|
||||
turn_password: ""
|
||||
|
||||
rate_limiting:
|
||||
enabled: true
|
||||
threshold: 5
|
||||
cooloff_ms: 500
|
||||
|
||||
edu_server:
|
||||
|
||||
federation_api:
|
||||
|
||||
federation_certificates: []
|
||||
|
||||
federation_sender:
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
send_max_retries: 16
|
||||
disable_tls_validation: false
|
||||
|
||||
proxy_outbound:
|
||||
enabled: true
|
||||
protocol: http
|
||||
host: localhost
|
||||
port: 8008
|
||||
|
||||
key_server:
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
|
||||
media_api:
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
base_path: /data/media
|
||||
max_file_size_bytes: 10485760
|
||||
dynamic_thumbnails: false
|
||||
max_thumbnail_generators: 10
|
||||
thumbnail_sizes:
|
||||
- width: 32
|
||||
height: 32
|
||||
method: crop
|
||||
- width: 96
|
||||
height: 96
|
||||
method: crop
|
||||
- width: 640
|
||||
height: 480
|
||||
method: scale
|
||||
|
||||
room_server:
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
|
||||
signing_key_server:
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
|
||||
key_perspectives:
|
||||
- server_name: matrix.org
|
||||
keys:
|
||||
- key_id: ed25519:auto
|
||||
public_key: Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw
|
||||
- key_id: ed25519:a_RXGa
|
||||
public_key: l8Hft5qXKn1vfHrg3p4+W8gELQVo8N13JkluMfmn2sQ
|
||||
|
||||
prefer_direct_fetch: false
|
||||
|
||||
sync_api:
|
||||
database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
|
||||
user_api:
|
||||
account_database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
device_database:
|
||||
connection_string: DATABASE_URL
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
conn_max_lifetime: -1
|
||||
|
||||
tracing:
|
||||
enabled: false
|
||||
jaeger:
|
||||
serviceName: ""
|
||||
disabled: false
|
||||
rpc_metrics: false
|
||||
tags: []
|
||||
sampler: null
|
||||
reporter: null
|
||||
headers: null
|
||||
baggage_restrictions: null
|
||||
throttler: null
|
||||
|
||||
logging:
|
||||
- type: file
|
||||
level: info
|
||||
params:
|
||||
path: /var/log/dendrite
|
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
ulimit -n 65535
|
||||
ulimit -u 4096
|
||||
exec /usr/bin/dendrite-monolith-server --tls-cert /etc/dendrite/server.crt --tls-key /etc/dendrite/server.key --config /etc/dendrite/dendrite.yaml
|
@ -0,0 +1,33 @@
|
||||
app = "den"
|
||||
|
||||
kill_signal = "SIGINT"
|
||||
kill_timeout = 20
|
||||
|
||||
[[services]]
|
||||
internal_port = 8008
|
||||
protocol = "tcp"
|
||||
|
||||
[services.concurrency]
|
||||
hard_limit = 100
|
||||
soft_limit = 80
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["tls", "http"]
|
||||
port = "443"
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["tls", "http"]
|
||||
port = "8443"
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["tls", "http"]
|
||||
port = "8448"
|
||||
|
||||
[[services.tcp_checks]]
|
||||
interval = "10s"
|
||||
grace_period = "5s"
|
||||
timeout = "2s"
|
||||
|
||||
[mounts]
|
||||
source="den_data"
|
||||
destination="/data"
|
Loading…
Reference in New Issue