Add new file for Task#9465

This commit is contained in:
kjg 2021-09-14 12:20:36 +02:00
parent f038b5f1f4
commit db9168650c

View file

@ -0,0 +1,45 @@
# Inbound federation.
location ~ ^/_matrix/federation/v1/send/ {
#proxy_pass http://inbound_federation_workers;
include /etc/nginx/conf.d/synapse-proxy.conf;
proxy_pass http://generic_worker_ih;
#include /etc/nginx/conf.d/synapse-proxy.conf;
}
# Anything else federation.
location ~ (^/_matrix/federation/v1/event/|^/_matrix/federation/v1/state/|^/_matrix/federation/v1/state_ids/|^/_matrix/federation/v1/backfill/|^/_matrix/federation/v1/get_missing_events/|^/_matrix/federation/v1/publicRooms|^/_matrix/federation/v1/query/|^/_matrix/federation/v1/make_join/|^/_matrix/federation/v1/make_leave/|^/_matrix/federation/v1/send_join/|^/_matrix/federation/v2/send_join/|^/_matrix/federation/v1/send_leave/|^/_matrix/federation/v2/send_leave/|^/_matrix/federation/v1/invite/|^/_matrix/federation/v2/invite/|^/_matrix/federation/v1/query_auth/|^/_matrix/federation/v1/event_auth/|^/_matrix/federation/v1/exchange_third_party_invite/|^/_matrix/federation/v1/user/devices/|^/_matrix/federation/v1/get_groups_publicised$|^/_matrix/key/v2/query) {
#proxy_pass http://federation_workers;
include /etc/nginx/conf.d/synapse-proxy.conf;
proxy_pass http://generic_worker_lc;
#include /etc/nginx/conf.d/synapse-proxy.conf;
}
# Syncing
location ~ (^/_matrix/client/(v2_alpha|r0)/sync$|^/_matrix/client/(api/v1|v2_alpha|r0)/events$|^/_matrix/client/(api/v1|r0)/initialSync$|^/_matrix/client/(api/v1|r0)/rooms/[^/]+/initialSync$) {
# proxy_pass http://sync_workers;
include /etc/nginx/conf.d/synapse-proxy.conf;
proxy_pass http://generic_worker_lc;
#include /etc/nginx/conf.d/synapse-proxy.conf;
}
location ~ (^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/redact|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/send|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/state/|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$|^/_matrix/client/(api/v1|r0|unstable)/join/|^/_matrix/client/(api/v1|r0|unstable)/profile/) {
# proxy_pass http://event_sending_workers;
include /etc/nginx/conf.d/synapse-proxy.conf;
proxy_pass http://generic_worker_lc;
#include /etc/nginx/conf.d/synapse-proxy.conf;
}
location ~ (^/_matrix/client/(api/v1|r0|unstable)/publicRooms$|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/joined_members$|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/context/.*$|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/members$|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/state$|^/_matrix/client/(api/v1|r0|unstable)/account/3pid$|^/_matrix/client/(api/v1|r0|unstable)/devices$|^/_matrix/client/(api/v1|r0|unstable)/keys/query$|^/_matrix/client/(api/v1|r0|unstable)/keys/changes$|^/_matrix/client/versions$|^/_matrix/client/(api/v1|r0|unstable)/voip/turnServer$|^/_matrix/client/(api/v1|r0|unstable)/joined_groups$|^/_matrix/client/(api/v1|r0|unstable)/publicised_groups$|^/_matrix/client/(api/v1|r0|unstable)/publicised_groups/|^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/event/|^/_matrix/client/(api/v1|r0|unstable)/joined_rooms$|^/_matrix/client/(api/v1|r0|unstable)/search$) {
# proxy_pass http://client_workers;
include /etc/nginx/conf.d/synapse-proxy.conf;
proxy_pass http://generic_worker_lc;
#include /etc/nginx/conf.d/synapse-proxy.conf;
}
location ~ (^/_matrix/client/(api/v1|r0|unstable)/login$|^/_matrix/client/(r0|unstable)/register$) {
# proxy_pass http://register_workers;
include /etc/nginx/conf.d/synapse-proxy.conf;
proxy_pass http://generic_worker_lc;
#include /etc/nginx/conf.d/synapse-proxy.conf;
}