initial commit
This commit is contained in:
54
obsidian-logic/matrix/homeserver.yaml
Normal file
54
obsidian-logic/matrix/homeserver.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
# Configuration file for Synapse.
|
||||
#
|
||||
# This is a YAML file: see [1] for a quick introduction. Note in particular
|
||||
# that *indentation is important*: all the elements of a list or dictionary
|
||||
# should have the same indentation.
|
||||
#
|
||||
# [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
|
||||
#
|
||||
# For more information on how to configure Synapse, including a complete accounting of
|
||||
# each option, go to docs/usage/configuration/config_documentation.md or
|
||||
# https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html
|
||||
server_name: "mydigitalfix.com"
|
||||
pid_file: /data/homeserver.pid
|
||||
listeners:
|
||||
- port: 8008
|
||||
resources:
|
||||
- compress: false
|
||||
names:
|
||||
- client
|
||||
- federation
|
||||
tls: false
|
||||
type: http
|
||||
x_forwarded: true
|
||||
database:
|
||||
name: psycopg2
|
||||
txn_limit: 10000
|
||||
args:
|
||||
user: synapse
|
||||
password:
|
||||
database: synapse
|
||||
host: synapse-db
|
||||
port: 5432
|
||||
cp_min: 5
|
||||
cp_max: 10
|
||||
log_config: "/data/mydigitalfix.log.config"
|
||||
media_store_path: /data/media_store
|
||||
registration_shared_secret:
|
||||
report_stats: true
|
||||
macaroon_secret_key:
|
||||
form_secret:
|
||||
signing_key_path: "/data/mydigitalfix.signing.key"
|
||||
trusted_key_servers:
|
||||
- server_name: "matrix.org"
|
||||
turn_uris:
|
||||
- "turn:matrix.mydigitalfix:3478?transport=udp"
|
||||
- "turn:matrix.mydigitalfix:3478?transport=tcp"
|
||||
- "turns:matrix.mydigitalfix:3478?transport=udp"
|
||||
- "turns:matrix.mydigitalfix:3478?transport=tcp"
|
||||
turn_shared_secret:
|
||||
turn_user_lifetime: 86400000
|
||||
turn_allow_guests: False
|
||||
|
||||
|
||||
# vim:ft=yaml
|
||||
1
obsidian-logic/matrix/matrix.env
Normal file
1
obsidian-logic/matrix/matrix.env
Normal file
@@ -0,0 +1 @@
|
||||
POSTGRES_PASSWORD=
|
||||
111
obsidian-logic/matrix/matrix.yml
Normal file
111
obsidian-logic/matrix/matrix.yml
Normal file
@@ -0,0 +1,111 @@
|
||||
---
|
||||
|
||||
# Matrix
|
||||
# Privacy focused messaging platform
|
||||
# Created by matrix.org
|
||||
# ↳ https://github.com/matrix-org
|
||||
|
||||
services:
|
||||
synapse:
|
||||
image: docker.io/matrixdotorg/synapse:latest
|
||||
container_name: matrix-synapse
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- synapse_db
|
||||
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
environment:
|
||||
SYNAPSE_CONFIG_PATH: "/data/homeserver.yaml"
|
||||
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- synapse-data:/data
|
||||
|
||||
synapse_db:
|
||||
image: docker.io/postgres:17.5
|
||||
container_name: matrix-db
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
environment:
|
||||
POSTGRES_USER: "synapse"
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
|
||||
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- synapse-db:/var/lib/postgresql/data
|
||||
|
||||
nginx:
|
||||
image: nginx:stable
|
||||
container_name: matrix-web
|
||||
restart: "always"
|
||||
|
||||
networks:
|
||||
- proxy
|
||||
# ports:
|
||||
# - 80:80
|
||||
# - 443:443
|
||||
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- matrix-nginx:/etc/nginx/conf.d
|
||||
|
||||
coturn:
|
||||
image: instrumentisto/coturn:latest
|
||||
container_name: matrix-coturn
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
- proxy
|
||||
# ports:
|
||||
# - 49160-49200:49160-49200/udp
|
||||
# - 3478:3478
|
||||
# - 5349:5349
|
||||
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- matrix-coturn:/etc/coturn
|
||||
|
||||
element:
|
||||
image: vectorim/element-web:latest
|
||||
container_name: matrix-element
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- matrix-element:/app
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
synapse-data:
|
||||
driver: local
|
||||
|
||||
synapse-db:
|
||||
driver: local
|
||||
|
||||
matrix-nginx:
|
||||
driver: local
|
||||
|
||||
matrix-element:
|
||||
driver: local
|
||||
|
||||
matrix-coturn:
|
||||
driver: local
|
||||
|
||||
# Documentation available at https://matrix.org/docs/chat_basics/matrix-for-im/
|
||||
11
obsidian-logic/matrix/turnserver.conf
Normal file
11
obsidian-logic/matrix/turnserver.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
use-auth-secret
|
||||
static-auth-secret=
|
||||
realm=matrix.mydigitalfix.com
|
||||
listening-port=3478
|
||||
tls-listening-port=5349
|
||||
min-port=49160
|
||||
max-port=49200
|
||||
verbose
|
||||
allow-loopback-peers
|
||||
cli-password=
|
||||
external-ip=97.107.140.166
|
||||
Reference in New Issue
Block a user