-
Notifications
You must be signed in to change notification settings - Fork 0
/
conduit.subdomain.conf.sample
45 lines (33 loc) · 1.29 KB
/
conduit.subdomain.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 8448 ssl http2;
listen [::]:8448 ssl http2;
server_name conduit.*;
include /config/nginx/ssl.conf;
merge_slashes off;
# Nginx defaults to only allow 1MB uploads
# Increase this to allow posting large files such as videos
client_max_body_size 20M;
location /_matrix/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_buffering off;
#proxy_read_timeout 5m; # Only a minute more than the default and uncommenting causes SWAG errors
proxy_set_header Host $http_host;
set $upstream_app Conduit;
set $upstream_port 6167;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port$request_uri;
}
### Server delegation stuff
location /.well-known/matrix/server {
return 200 '{"m.server": "matrix.my.domain:443"}';
add_header Content-Type application/json;
}
location /.well-known/matrix/client {
return 200 '{"m.homeserver": {"base_url": "https://matrix.my.domain"},"org.matrix.msc3575.proxy": {"url": "https://matrix.my.domain"}}';
add_header Content-Type application/json;
add_header "Access-Control-Allow-Origin" *;
}
}