mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2024-10-01 07:35:35 -04:00
update some more config files
This commit is contained in:
parent
ecb3af34c9
commit
74cd45ebeb
@ -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;
|
||||
}
|
||||
|
23
etc/nginx/include.d/upstream_workers.conf
Normal file
23
etc/nginx/include.d/upstream_workers.conf
Normal 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;
|
||||
}
|
@ -21,6 +21,10 @@ server {
|
||||
|
||||
root /opt/Riot/resources/webapp/;
|
||||
index index.html;
|
||||
|
||||
location = /index.html {
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
}
|
||||
|
||||
#ALIAS
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user