mirror of
https://github.com/c0mmando/hackliberty-conf.git
synced 2024-10-01 05:05:41 -04:00
add matrix sliding sync (msc3575)
This commit is contained in:
parent
6bbd6ccd91
commit
b05c15a681
@ -66,6 +66,35 @@ services:
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=false"
|
||||
|
||||
sliding-sync:
|
||||
image: ghcr.io/matrix-org/sliding-sync
|
||||
container_name: sliding-sync
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- "SYNCV3_SECRET=${SYNCV3_SECRET}"
|
||||
- "SYNCV3_SERVER=${SYNCV3_SERVER}"
|
||||
- "SYNCV3_DB=${SYNCV3_DB}"
|
||||
- "SYNCV3_BINDADDR=${SYNCV3_BINDADDR}"
|
||||
depends_on:
|
||||
- sliding-postgres
|
||||
networks:
|
||||
- matrix
|
||||
|
||||
sliding-postgres:
|
||||
image: docker.io/postgres:16-alpine
|
||||
container_name: sliding-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- "POSTGRES_USER=${SLIDING_POSTGRES_USER}"
|
||||
- "POSTGRES_PASSWORD=${SLIDING_POSTGRES_PASSWORD}"
|
||||
- "POSTGRES_DB=${SLIDING_POSTGRES_DB}"
|
||||
volumes:
|
||||
- ./sliding-sync-db:/var/lib/postgresql/data
|
||||
networks:
|
||||
- matrix
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=false"
|
||||
|
||||
swag:
|
||||
image: ghcr.io/linuxserver/swag
|
||||
restart: unless-stopped
|
||||
|
@ -1,4 +1,4 @@
|
||||
ARG SYNAPSE_VERSION=1.108.0
|
||||
ARG SYNAPSE_VERSION=1.109.0
|
||||
ARG HARDENED_MALLOC_VERSION=11
|
||||
ARG UID=991
|
||||
ARG GID=991
|
||||
|
@ -1,4 +1,4 @@
|
||||
ARG SYNAPSE_VERSION=1.108.0
|
||||
ARG SYNAPSE_VERSION=1.109.0
|
||||
ARG HARDENED_MALLOC_VERSION=11
|
||||
ARG UID=991
|
||||
ARG GID=991
|
||||
|
@ -33,6 +33,17 @@ server {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
|
||||
# Add the new configuration block
|
||||
return 200 '
|
||||
{
|
||||
"m.homeserver": {
|
||||
"base_url": "https://hackliberty.org"
|
||||
},
|
||||
"org.matrix.msc3575.proxy": {
|
||||
"url": "https://hackliberty.org"
|
||||
}
|
||||
}
|
||||
';
|
||||
}
|
||||
|
||||
#Home Page
|
||||
@ -77,6 +88,14 @@ server {
|
||||
# Sync_Worker
|
||||
#include /config/nginx/include.d/sync_worker.conf;
|
||||
|
||||
location ~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync) {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
set $upstream_app sliding-sync;
|
||||
set $upstream_port 8009;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
location ~ ^(/_matrix.*) {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
|
Loading…
Reference in New Issue
Block a user