Added synapse app service in development environment and code cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Okupa mi coche - Docker containers for the backend
|
||||
Guide for seting up development environment for the backend.
|
||||
Guide for seting up a local development environment for the backend.
|
||||
|
||||
## Setup
|
||||
1. Install Docker in local machine
|
||||
@@ -34,7 +34,8 @@ docker run -it --rm \
|
||||
```
|
||||
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 --network=okupamicoche okupamicoche-synapse
|
||||
-v $(pwd)/homeserver.yaml:/homeserver.yaml -v $(pwd)/okupamicoche-appservice.yaml:/okupamicoche-appservice.yaml \
|
||||
--network=okupamicoche okupamicoche-synapse
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
@@ -9,13 +9,6 @@ listeners:
|
||||
resources:
|
||||
- names: [ client, federation ]
|
||||
compress: false
|
||||
acme:
|
||||
enabled: false
|
||||
port: 80
|
||||
bind_addresses: [ '::', '0.0.0.0' ]
|
||||
reprovision_threshold: 30
|
||||
domain: matrix.example.com
|
||||
account_key_file: /data/acme_account.key
|
||||
database:
|
||||
name: sqlite3
|
||||
args:
|
||||
@@ -27,7 +20,6 @@ report_stats: false
|
||||
macaroon_secret_key: "6VvBQj_TedGcDDB_z,-qXV1W3:.CXrRG6AWF&4p:~iGNguy&_h"
|
||||
form_secret: "FM,2TSq++sZ@Tl0atcQP"
|
||||
signing_key_path: "/data/okupamicoche-synapse.signing.key"
|
||||
old_signing_keys:
|
||||
trusted_key_servers:
|
||||
- server_name: "matrix.org"
|
||||
oidc_providers:
|
||||
@@ -43,4 +35,6 @@ oidc_providers:
|
||||
display_name_template: "{{ user.name }}"
|
||||
sso:
|
||||
client_whitelist:
|
||||
- http://localhost:4200/
|
||||
- http://localhost:4200/
|
||||
app_service_config_files:
|
||||
- /okupamicoche-appservice.yaml
|
||||
11
docker/synapse/okupamicoche-appservice.yaml
Normal file
11
docker/synapse/okupamicoche-appservice.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
id: "Okupa mi coche"
|
||||
url: "http://172.17.0.1:8081"
|
||||
as_token: "30c05ae90a248a4188e620216fa72e349803310ec83e2a77b34fe90be6081f46"
|
||||
hs_token: "312df522183efd404ec1cd22d2ffa4bbc76a8c1ccf541dd692eef281356bb74e"
|
||||
sender_localpart: "okupamicoche"
|
||||
namespaces:
|
||||
users: [ ]
|
||||
aliases:
|
||||
- regex: "#viaje_.*"
|
||||
exclusive: true
|
||||
rooms: [ ]
|
||||
Reference in New Issue
Block a user