mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2025-07-28 01:15:23 -04:00
update current matrix configs
This commit is contained in:
parent
70ce34a9cf
commit
89f7aa6229
11 changed files with 450 additions and 252 deletions
|
@ -7,277 +7,343 @@
|
|||
#
|
||||
|
||||
## Sync requests
|
||||
location ~* ^/_matrix/client/(v2_alpha|r0)/sync$ {
|
||||
proxy_pass http://localhost:8083;
|
||||
location ~* ^/_matrix/client/(v2_alpha|r0|v3)/sync$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://localhost:8083;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|v2_alpha|r0)/events$ {
|
||||
location ~* ^/_matrix/client/(api/v1|v2_alpha|r0|v3)/events$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0)/initialSync$ {
|
||||
proxy_pass http://localhost:8083;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3)/initialSync$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://localhost:8083;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0)/rooms/[^/]+/initialSync$ {
|
||||
proxy_pass http://localhost:8083;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://localhost:8083;
|
||||
}
|
||||
|
||||
|
||||
## Federation requests
|
||||
location ~* ^/_matrix/federation/v1/event/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/state/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/state_ids/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/backfill/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/get_missing_events/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/publicRooms {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/query/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/make_join/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/make_leave/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/send_join/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v2/send_join/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/send_leave/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v2/send_leave/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/invite/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v2/invite/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/query_auth/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/event_auth/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/exchange_third_party_invite/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/user/devices/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/v1/get_groups_publicised$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/key/v2/query {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/unstable/org.matrix.msc2946/spaces/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/federation/(v1|unstable/org.matrix.msc2946)/hierarchy/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
|
||||
## Inbound federation transaction request
|
||||
location ~* ^/_matrix/federation/v1/send/ {
|
||||
proxy_pass http://generic_worker_ih;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_ih;
|
||||
}
|
||||
|
||||
|
||||
## Client API requests
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|unstable)/createRoom$ {
|
||||
# proxy_pass http://generic_worker_lc;
|
||||
# include include.d/synapse-proxy.conf;
|
||||
#}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/publicRooms$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/createRoom$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/joined_members$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/publicRooms$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/context/.*$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/joined_members$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/members$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/context/.*$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/state$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/account/3pid$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/devices$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/unstable/org.matrix.msc2946/rooms/.*/spaces$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/keys/query$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(v1|unstable/org.matrix.msc2946)/rooms/.*/hierarchy$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/keys/changes$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/account/3pid$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/devices$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/keys/query$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/keys/changes$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/versions$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/voip/turnServer$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/joined_groups$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/joined_groups$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/publicised_groups$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/publicised_groups$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/publicised_groups/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/publicised_groups/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/event/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/event/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/joined_rooms$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/search$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/search$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
|
||||
## Registration/login requests
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/login$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/login$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(r0|unstable)/register$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(r0|v3|unstable)/register$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(r0|unstable)/auth/.*/fallback/web$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/unstable/org.matrix.msc3231/register/org.matrix.msc3231.login.registration_token/validity$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
|
||||
# STREAM WORKERS
|
||||
## Event sending requests
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/redact {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc_instancemap;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/send {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/send {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc_instancemap;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/state/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc_instancemap;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc_instancemap;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/join/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/join/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc_instancemap;
|
||||
}
|
||||
|
||||
location ~* ^/_matrix/client/(api/v1|r0|unstable)/profile/ {
|
||||
proxy_pass http://generic_worker_lc;
|
||||
location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/profile/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc_instancemap;
|
||||
}
|
||||
|
||||
## Typing requests
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing {
|
||||
# include include.d/synapse-proxy.conf;
|
||||
# proxy_pass http://generic_worker_lc_instancemap;
|
||||
#}
|
||||
|
||||
## Device requests
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/sendToDevice/ {
|
||||
# include include.d/synapse-proxy.conf;
|
||||
# proxy_pass http://generic_worker_lc_instancemap;
|
||||
#}
|
||||
|
||||
## Account data requests
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/.*/tags {
|
||||
# include include.d/synapse-proxy.conf;
|
||||
# proxy_pass http://generic_worker_lc_instancemap;
|
||||
#}
|
||||
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/.*/account_data {
|
||||
# include include.d/synapse-proxy.conf;
|
||||
# proxy_pass http://generic_worker_lc_instancemap;
|
||||
#}
|
||||
|
||||
## Receipts requests
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/receipt {
|
||||
# include include.d/synapse-proxy.conf;
|
||||
# proxy_pass http://generic_worker_lc_instancemap;
|
||||
#}
|
||||
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/read_markers {
|
||||
# include include.d/synapse-proxy.conf;
|
||||
# proxy_pass http://generic_worker_lc_instancemap;
|
||||
#}
|
||||
|
||||
## Presence requests
|
||||
#location ~* ^/_matrix/client/(api/v1|r0|v3|unstable)/presence/.*/status$ {
|
||||
# include include.d/synapse-proxy.conf;
|
||||
# proxy_pass http://generic_worker_lc_instancemap;
|
||||
#}
|
||||
|
|
13
etc/nginx/include.d/maubot.conf
Normal file
13
etc/nginx/include.d/maubot.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
location ^~ /_matrix/maubot {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://localhost:29316/_matrix/maubot;
|
||||
}
|
||||
|
||||
# log
|
||||
location ^~ /_matrix/maubot/v1/logs {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://localhost:29316/_matrix/maubot/v1/logs;
|
||||
}
|
16
etc/nginx/include.d/media-repo.conf
Normal file
16
etc/nginx/include.d/media-repo.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
location ^~ /_matrix/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;
|
||||
}
|
15
etc/nginx/include.d/mjolnir-report.conf
Normal file
15
etc/nginx/include.d/mjolnir-report.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Abuse reports should be sent to Mjölnir.
|
||||
|
||||
location ~* ^/_matrix/client/r0/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;
|
||||
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since' always;
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;
|
||||
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;
|
||||
proxy_pass http://127.0.0.1:9002/api/1/report/$room_id/$event_id;
|
||||
}
|
|
@ -5,10 +5,10 @@ proxy_set_header X-Forwarded-Proto $scheme;
|
|||
|
||||
port_in_redirect off;
|
||||
proxy_redirect off;
|
||||
proxy_connect_timeout 360;
|
||||
proxy_read_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
proxy_connect_timeout 3600;
|
||||
proxy_read_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
|
||||
#proxy_buffering off;
|
||||
proxy_buffering off;
|
||||
proxy_buffers 8 16k;
|
||||
proxy_buffer_size 32k;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue