Skip to content

Commit 5c55583

Browse files
authored
Merge pull request #383 from deutschepost/synapse
Added config sample for the Synapse Matrix Server
2 parents 6345cdc + 6f768d1 commit 5c55583

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

synapse.subdomain.conf.sample

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Version 2021/10/03
2+
3+
server {
4+
listen 443 ssl http2;
5+
listen [::]:443 ssl http2;
6+
7+
# For the federation port
8+
listen 8448 ssl http2 default_server;
9+
listen [::]:8448 ssl http2 default_server;
10+
11+
server_name matrix.*;
12+
13+
include /config/nginx/ssl.conf;
14+
15+
client_max_body_size 0;
16+
17+
# enable for ldap auth, fill in ldap details in ldap.conf
18+
#include /config/nginx/ldap.conf;
19+
20+
# enable for Authelia
21+
#include /config/nginx/authelia-server.conf;
22+
23+
location / {
24+
# enable the next two lines for http auth
25+
#auth_basic "Restricted";
26+
#auth_basic_user_file /config/nginx/.htpasswd;
27+
28+
# enable the next two lines for ldap auth
29+
#auth_request /auth;
30+
#error_page 401 =200 /ldaplogin;
31+
32+
# enable for Authelia
33+
#include /config/nginx/authelia-location.conf;
34+
35+
include /config/nginx/proxy.conf;
36+
include /config/nginx/resolver.conf;
37+
set $upstream_app synapse;
38+
set $upstream_port 8008;
39+
set $upstream_proto http;
40+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
41+
}
42+
}

0 commit comments

Comments
 (0)