mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2025-07-31 18:58:50 -04:00
update synpase worker conf
This commit is contained in:
parent
cceda0179d
commit
6218fbb3f6
5 changed files with 83 additions and 8 deletions
|
@ -24,22 +24,19 @@ map $http_origin $DO_CORS {
|
|||
}
|
||||
|
||||
|
||||
upstream generic_worker_rr {
|
||||
server localhost:8510;
|
||||
server localhost:8511;
|
||||
server localhost:8512;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -52,13 +49,15 @@ server {
|
|||
|
||||
## well-known
|
||||
location /.well-known/matrix/support {
|
||||
add_header Access-Control-Allow-Origin "$DO_CORS";
|
||||
# add_header Access-Control-Allow-Origin "$DO_CORS";
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
add_header Content-Type application/json;
|
||||
return 200 '{"admins": [{"matrix_id": "@creme:envs.net", "email_address": "hostmaster@envs.net", "role": "admin"}]}';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/ {
|
||||
add_header Access-Control-Allow-Origin "$DO_CORS";
|
||||
# add_header Access-Control-Allow-Origin "$DO_CORS";
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
add_header Content-Type application/json;
|
||||
return 200 '{"m.server": "matrix.envs.net:443", "m.homeserver": {"base_url": "https://matrix.envs.net"}}';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue