mirror of https://git.envs.net/envs/ops.git
update nginx for matrix-maubot
This commit is contained in:
parent
71cfd87a54
commit
3c512b5fd4
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue