Add synapse and tt-rss; Fix gitea, grafana and webdis
This commit is contained in:
parent
bf0f991b49
commit
5373863a3e
12 changed files with 201 additions and 5 deletions
2
synapse/data/.gitignore
vendored
Normal file
2
synapse/data/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/secrets.yaml
|
||||
msrg.cc.signing.key
|
74
synapse/data/homeserver.yaml
Normal file
74
synapse/data/homeserver.yaml
Normal file
|
@ -0,0 +1,74 @@
|
|||
# https://matrix-org.github.io/synapse/latest/usage/configuration/index.html
|
||||
|
||||
server_name: "msrg.cc"
|
||||
pid_file: /data/homeserver.pid
|
||||
public_baseurl: https://matrix.msrg.cc/
|
||||
allow_public_rooms_without_auth: true
|
||||
allow_public_rooms_over_federation: true
|
||||
|
||||
listeners:
|
||||
- port: 8008
|
||||
tls: false
|
||||
type: http
|
||||
x_forwarded: true
|
||||
resources:
|
||||
- names:
|
||||
- client
|
||||
- federation
|
||||
- metrics
|
||||
compress: false
|
||||
|
||||
admin_contact: "mailto:tobias@msrg.cc"
|
||||
|
||||
acme:
|
||||
enabled: false
|
||||
|
||||
database:
|
||||
name: "psycopg2"
|
||||
args:
|
||||
user: "synapse"
|
||||
#password: ""
|
||||
database: "synapse"
|
||||
host: "node002.serguzim.me"
|
||||
cp_min: 5
|
||||
cp_max: 10
|
||||
|
||||
log_config: "/data/msrg.cc.log.config"
|
||||
media_store_path: "/media_store"
|
||||
max_upload_size: 500M
|
||||
enable_registration: false
|
||||
enable_metrics: true
|
||||
report_stats: true
|
||||
|
||||
#macaroon_secret_key: ""
|
||||
#form_secret: ""
|
||||
signing_key_path: "/data/msrg.cc.signing.key"
|
||||
|
||||
trusted_key_servers:
|
||||
- server_name: "matrix.org"
|
||||
suppress_key_server_warning: true
|
||||
|
||||
oidc_providers:
|
||||
- idp_id: "auth_serguzim_me"
|
||||
idp_name: "auth.serguzim.me"
|
||||
issuer: "https://auth.serguzim.me/application/o/matrix_serguzim_me/"
|
||||
#client_id: ""
|
||||
#client_secret: ""
|
||||
scopes:
|
||||
- "openid"
|
||||
- "profile"
|
||||
- "email"
|
||||
user_mapping_provider:
|
||||
config:
|
||||
localpart_template: "{{ user.preferred_username }}"
|
||||
display_name_template: "{{ user.name }}"
|
||||
|
||||
email:
|
||||
smtp_host: mail.serguzim.me
|
||||
smtp_port: 587
|
||||
smtp_user: "matrix@serguzim.me"
|
||||
#smtp_pass: ""
|
||||
require_transport_security: true
|
||||
notif_from: "Matrix <matrix@serguzim.me>"
|
||||
|
||||
# vim:ft=yaml
|
22
synapse/data/msrg.cc.log.config
Normal file
22
synapse/data/msrg.cc.log.config
Normal file
|
@ -0,0 +1,22 @@
|
|||
version: 1
|
||||
|
||||
formatters:
|
||||
precise:
|
||||
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
|
||||
|
||||
handlers:
|
||||
console:
|
||||
class: logging.StreamHandler
|
||||
formatter: precise
|
||||
|
||||
loggers:
|
||||
synapse.storage.SQL:
|
||||
# beware: increasing this to DEBUG will make synapse log sensitive
|
||||
# information such as access tokens.
|
||||
level: INFO
|
||||
|
||||
root:
|
||||
level: INFO
|
||||
handlers: [console]
|
||||
|
||||
disable_existing_loggers: false
|
24
synapse/docker-compose.yml
Normal file
24
synapse/docker-compose.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
synapse:
|
||||
image: docker.io/matrixdotorg/synapse:latest
|
||||
restart: always
|
||||
environment:
|
||||
- SYNAPSE_CONFIG_PATH=/data/
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- media_store:/media_store
|
||||
ports:
|
||||
- 8008:8008/tcp
|
||||
|
||||
synapse-admin:
|
||||
image: awesometechnologies/synapse-admin:latest
|
||||
restart: always
|
||||
ports:
|
||||
- "8009:80"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
media_store:
|
Reference in a new issue