fix(matrix): synapse/matrix mixups

This commit is contained in:
ange 2024-02-08 14:26:02 +01:00
parent 98ccd52ae6
commit b640f953b2
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
5 changed files with 5 additions and 17 deletions

View File

@ -3,7 +3,7 @@ EMAIL=
###############
### Synapse ###
###############
SYNAPSE_BASE_URL=matrix.
MATRIX_BASE_URL=matrix.
POSTGRES_PASSWORD=
PUID=1000
@ -21,4 +21,4 @@ POSTGRES_DB=matrix
### Coturn ###
##############
COTURN_BASE_URL=turn.
AUTH_SECRET= #$(openssl rand -hex 32)
AUTH_SECRET=

View File

@ -47,13 +47,13 @@ services:
- AUTH_SECRET
synapse:
build: synapse
image: docker.io/matrixdotorg/synapse:v1.100.0
restart: unless-stopped
volumes:
- synapse_config:/config/
- synapse_data:/data/
environment:
- SYNAPSE_SERVER_NAME=$SYNAPSE_BASE_URL
- SYNAPSE_SERVER_NAME=$MATRIX_BASE_URL
- SYNAPSE_CONFIG_DIR=/config
- SYNAPSE_DATA_DIR=/data
- UID=$PUID

View File

@ -17,7 +17,7 @@ server {
ssl_certificate_key /etc/letsencrypt/live/$BASE_URL/privkey.pem;
location ~ ^(/_matrix|/_synapse/client) {
proxy_pass http://matrix:8008;
proxy_pass http://synapse:8008;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;

View File

@ -1,4 +0,0 @@
FROM docker.io/matrixdotorg/synapse:v1.100.0
COPY entrypoint.sh /usr/local/bin/
ENTRYPOINT ["entrypoint.sh"]
CMD ["/start.py"]

View File

@ -1,8 +0,0 @@
#!/bin/bash -e
sed -i \
-e "/turn_uris/s/:*/: [$COTURN_BASE_URL]/" \
-e "/turn_shared_secret/s/:.*/: $AUTH_SECRET" \
/config/homeserver
exec "$@"