mirror of
https://git.anonymousland.org/deathrow/synapse-docker-deployment.git
synced 2025-05-10 15:54:58 -04:00
Remove items not yet setup
This commit is contained in:
parent
c5ec38aaa1
commit
287ebb7d6d
10 changed files with 196 additions and 197 deletions
|
@ -1,22 +0,0 @@
|
|||
# Typing
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://additional1;
|
||||
}
|
||||
|
||||
# Device requests
|
||||
location ~ ^/_matrix/client/(r0|v3|unstable)/sendToDevice/ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://additional1;
|
||||
}
|
||||
|
||||
# Account data requests
|
||||
location ~ ^/_matrix/client/(r0|v3|unstable)/.*/tags {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://additional1;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(r0|v3|unstable)/.*/account_data {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://additional1;
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
# Event sending requests
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/send {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state/ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/join/ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/profile/ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
# GET Requests
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/pushrules/ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/messages$ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
# For all SSO providers
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/login/sso/redirect {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://sso_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_synapse/client/p^/_synapse/client/oidc/callback$ew_user_consent$ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://sso_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_synapse/client/sso_register$ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://sso_worker_lc;
|
||||
}
|
||||
|
||||
# OpenID Connect requests
|
||||
|
||||
location ~ ^/_synapse/client/oidc/callback$ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
# SAML requests
|
||||
|
||||
location ~ ^/_synapse/client/saml2/authn_response$ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
# CAS requests.
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/login/cas/ticket$ {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
location ^~ /_matrix/media {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
# Receipts requests
|
||||
location ~ ^/_matrix/client/(r0|v3|unstable)/rooms/.*/receipt {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://additional2;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(r0|v3|unstable)/rooms/.*/read_markers {
|
||||
include /config/nginx/include.d/synapse-proxy.conf;
|
||||
proxy_pass http://additional2;
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
# Choose sync worker based on the existence of "since" query parameter
|
||||
map $arg_since $sync {
|
||||
default sync_worker;
|
||||
'' sync_init;
|
||||
}
|
||||
# Sync initial/normal
|
||||
location ~ ^/_matrix/client/(r0|v3)/sync$ {
|
||||
include snippets/matrix-proxy-headers.conf;
|
||||
proxy_pass http://$sync;
|
||||
proxy_read_timeout 1h;
|
||||
}
|
||||
|
||||
# Normal sync
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3)/events$ {
|
||||
include snippets/matrix-proxy-headers.conf;
|
||||
proxy_pass http://sync_worker;
|
||||
}
|
||||
|
||||
# Initial_sync
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3)/initialSync$ {
|
||||
include snippets/matrix-proxy-headers.conf;
|
||||
proxy_pass http://sync_init;
|
||||
proxy_read_timeout 1h;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$ {
|
||||
include snippets/matrix-proxy-headers.conf;
|
||||
proxy_pass http://sync_init;
|
||||
proxy_read_timeout 1h;
|
||||
}
|
|
@ -12,43 +12,4 @@ upstream generic_worker_lc {
|
|||
server synapse-generic-worker-2:8081;
|
||||
server synapse-generic-worker-3:8081;
|
||||
server synapse-generic-worker-4:8081;
|
||||
}
|
||||
|
||||
upstream additional1_worker_lc {
|
||||
least_conn;
|
||||
server additional1:8081;
|
||||
}
|
||||
|
||||
upstream sso_worker_lc {
|
||||
least_conn;
|
||||
server synapse-generic-worker-4:8081;
|
||||
}
|
||||
|
||||
# extract username from token get parameter
|
||||
map $arg_access_token $token_from_arg {
|
||||
default $arg_access_token;
|
||||
"~syt_(?<username>.*?)_.*" $username;
|
||||
}
|
||||
|
||||
# extract username part from bearer token, fallback to access_token
|
||||
map $http_authorization $proxy_username_label {
|
||||
default $http_authorization;
|
||||
"~Bearer syt_(?<username>.*?)_.*" $username;
|
||||
"" $token_from_arg;
|
||||
}
|
||||
|
||||
|
||||
upstream sync_worker {
|
||||
# pin with username extracted from bearer token or access_token
|
||||
hash $proxy_username_label consistent;
|
||||
server sync1:8081;
|
||||
server sync2:8081;
|
||||
server sync3:8081;
|
||||
}
|
||||
|
||||
upstream sync_init {
|
||||
# Use the username mapper result for hash key
|
||||
hash $mxid_localpart consistent;
|
||||
server sync4:8081;
|
||||
server sync5:8081;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue