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;
}

View File

@ -21,6 +21,10 @@ server {
root /opt/Riot/resources/webapp/;
index index.html;
location = /index.html {
add_header Cache-Control "no-cache";
}
}
#ALIAS

View File

@ -1,7 +1,7 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name matrix.envs.net turn.envs.net;
server_name matrix.envs.net;
location / {
return 307 https://$host$request_uri;
@ -14,28 +14,7 @@ server {
# WORKERS
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;
}
include include.d/upstream_workers.conf;
server {
listen 443 ssl http2 default_server;