update matrix nginx conf

This commit is contained in:
creme 2020-01-11 13:21:03 +00:00
parent 7c0fb92d38
commit 3fea75aa36
2 changed files with 10 additions and 2 deletions

View File

@ -1,13 +1,13 @@
user www-data;
worker_processes auto;
worker_rlimit_nofile 100000;
worker_rlimit_nofile 262144;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
error_log /var/log/nginx/error.log crit;
events {
worker_connections 10240;
worker_connections 24576;
use epoll;
multi_accept on;
}

View File

@ -51,6 +51,14 @@ server {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
# matrix
location /_matrix {
include proxy_params;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_pass https://matrix.envs.net;
}
# users
location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
alias /home/$user/public_html$user_uri;