44 lines
860 B
Smarty
44 lines
860 B
Smarty
upstream synapse {
|
|
server unix:/alloc/tmp/synapse.sock;
|
|
}
|
|
|
|
upstream element {
|
|
server 127.0.0.1:8710;
|
|
}
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 127.0.0.1:8008 default_server;
|
|
server_tokens off;
|
|
root /usr/share/html;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_set_header Host $host;
|
|
proxy_socket_keepalive on;
|
|
client_max_body_size 100m;
|
|
set_real_ip_from 127.0.0.1;
|
|
real_ip_header X-Forwarded-For;
|
|
real_ip_recursive on;
|
|
|
|
location /_matrix {
|
|
proxy_pass http://synapse;
|
|
proxy_read_timeout 600;
|
|
}
|
|
location /_synapse {
|
|
proxy_pass http://synapse;
|
|
proxy_read_timeout 600;
|
|
}
|
|
location /health {
|
|
proxy_pass http://synapse;
|
|
}
|
|
location / {
|
|
proxy_pass http://element;
|
|
}
|
|
}
|