mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2025-08-01 19:26:16 -04:00
update outdated configs
This commit is contained in:
parent
88dbd169c2
commit
86a18749a6
7 changed files with 219 additions and 268 deletions
|
@ -14,3 +14,36 @@ location ^~ /_matrix/media {
|
|||
proxy_buffering off;
|
||||
proxy_pass http://localhost:8000;
|
||||
}
|
||||
|
||||
location ^~ /_matrix/client/v1/media {
|
||||
client_max_body_size 100M;
|
||||
|
||||
proxy_set_header Host envs.net;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
|
||||
port_in_redirect off;
|
||||
proxy_redirect off;
|
||||
proxy_connect_timeout 3600;
|
||||
proxy_read_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_pass http://localhost:8000;
|
||||
}
|
||||
location ^~ /_matrix/federation/v1/media {
|
||||
client_max_body_size 100M;
|
||||
|
||||
proxy_set_header Host envs.net;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
|
||||
port_in_redirect off;
|
||||
proxy_redirect off;
|
||||
proxy_connect_timeout 3600;
|
||||
proxy_read_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_pass http://localhost:8000;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Abuse reports should be sent to Mjolnir.
|
||||
location ~ ^/_matrix/client/r0/rooms/([^/]*)/report/(.*)$ {
|
||||
# Abuse reports should be sent to Mjolnir/Draupnir.
|
||||
location ~ ^/_matrix/client/(r0|v3)/rooms/([^/]*)/report/(.*)$ {
|
||||
# add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
||||
|
@ -8,7 +8,7 @@ location ~ ^/_matrix/client/r0/rooms/([^/]*)/report/(.*)$ {
|
|||
add_header 'Access-Control-Max-Age' 1728000;
|
||||
|
||||
# Alias the regexps, to ensure that they're not rewritten.
|
||||
set $room_id $1;
|
||||
set $event_id $2;
|
||||
set $room_id $2;
|
||||
set $event_id $3;
|
||||
proxy_pass http://127.0.0.1:9002/api/1/report/$room_id/$event_id;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ upstream generic_worker_ih {
|
|||
server localhost:8511;
|
||||
server localhost:8512;
|
||||
server localhost:8513;
|
||||
server localhost:8514;
|
||||
}
|
||||
|
||||
upstream generic_worker_lc {
|
||||
|
@ -13,7 +12,6 @@ upstream generic_worker_lc {
|
|||
server localhost:8511;
|
||||
server localhost:8512;
|
||||
server localhost:8513;
|
||||
server localhost:8514;
|
||||
}
|
||||
|
||||
upstream additional {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue