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