update some more config files

This commit is contained in:
creme 2022-01-09 12:46:03 +01:00
parent ecb3af34c9
commit 74cd45ebeb
No known key found for this signature in database
GPG key ID: C147C3B7FBDF08D0
4 changed files with 39 additions and 33 deletions

View file

@ -1,20 +1,20 @@
# allow element feature "deactivate user"
location ^~ /_synapse/admin/v1/users/@creme:envs.net/admin {
proxy_pass http://localhost:8008;
location ~ ^/_synapse/admin/v1/users/@(mjolnir|creme):envs.net/admin$ {
include include.d/synapse-proxy.conf;
proxy_pass http://localhost:8008;
}
location ^~ /_synapse/admin/v1/whois/@creme:envs.net {
proxy_pass http://localhost:8008;
location ~ ^/_synapse/admin/v1/whois/@(mjolnir|creme):envs.net$ {
include include.d/synapse-proxy.conf;
}
location ^~ /_synapse/admin/v1/deactivate {
proxy_pass http://localhost:8008;
include include.d/synapse-proxy.conf;
}
location ^~ /_synapse/admin {
location ~ ^/_synapse/admin/v1/deactivate {
include include.d/synapse-proxy.conf;
proxy_pass http://localhost:8008;
}
location ~ ^/_synapse/admin {
allow 127.0.0.1;
deny all;
proxy_pass http://localhost:8008;
include include.d/synapse-proxy.conf;
proxy_pass http://localhost:8008;
}

View file

@ -0,0 +1,23 @@
upstream generic_worker_ih {
ip_hash;
server localhost:8510;
server localhost:8511;
server localhost:8512;
server localhost:8513;
}
upstream generic_worker_lc {
least_conn;
server localhost:8510;
server localhost:8511;
server localhost:8512;
server localhost:8513;
}
## STREAM WORKER
upstream generic_worker_lc_instancemap {
least_conn;
server localhost:8510;
server localhost:8511;
server localhost:8512;
}