update nginx for matrix-maubot

This commit is contained in:
creme 2020-02-18 09:48:25 +00:00
parent 71cfd87a54
commit 3c512b5fd4
2 changed files with 22 additions and 0 deletions

View File

@ -86,6 +86,17 @@ server {
proxy_pass https://matrix.envs.net;
}
# maubot logs
location /_matrix/maubot/v1/logs {
include proxy_params;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass https://matrix.envs.net;
}
# users
location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
alias /home/$user/public_html$user_uri;

View File

@ -24,6 +24,17 @@ server {
proxy_ssl_server_name on;
proxy_pass https://matrix.envs.net;
}
# maubot log
location /_matrix/maubot/v1/logs {
include proxy_params;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass https://matrix.envs.net/_matrix/maubot/v1/logs;
}
}