working synapse

This commit is contained in:
2022-01-13 00:25:53 +01:00
parent 3eeac8fc21
commit 092cb39012
6 changed files with 5 additions and 221 deletions

View File

@@ -1,5 +1,5 @@
# Okupa mi coche - Docker containers for the backend
Guide for seting up a local development environment for the backend.
Guide for setting up a local development environment for the backend.
## Setup
1. Install Docker in local machine
@@ -15,18 +15,18 @@ docker run -it --rm \
--mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_SERVER_NAME=okupamicoche-synapse \
-e SYNAPSE_REPORT_STATS=no \
okupamicoche-synapse generate
matrixdotorg/synapse:latest generate
```
6. Run dockerized Synapse
```
docker run --name okupamicoche-synapse -p 8008:8008 --mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_CONFIG_PATH=/homeserver.yaml \
-v $(pwd)/homeserver.yaml:/homeserver.yaml -v $(pwd)/okupamicoche-appservice.yaml:/okupamicoche-appservice.yaml \
okupamicoche-synapse
matrixdotorg/synapse:latest
```
## Run
`docker start okupamicoche-synapse`
## Inspect containter
## Inspect container
`docker exec -t -i okupamicoche-synapse /bin/bash`

View File

@@ -13,6 +13,7 @@ database:
name: sqlite3
args:
database: /data/homeserver.db
enable_registration: true
log_config: "/data/okupamicoche-synapse.log.config"
media_store_path: "/data/media_store"
registration_shared_secret: "Y_XNuno*Dh,T2IpHA;i,bWF^fg&x.*t=iEz*@:y5REBMhgCA63"
@@ -22,8 +23,5 @@ form_secret: "FM,2TSq++sZ@Tl0atcQP"
signing_key_path: "/data/okupamicoche-synapse.signing.key"
trusted_key_servers:
- server_name: "matrix.org"
sso:
client_whitelist:
- http://localhost:4200/
app_service_config_files:
- /okupamicoche-appservice.yaml