Commit f4ade9c1 authored by nimrod's avatar nimrod
Browse files

Web proxy: Matrix server config.

parent bbc33028
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
# vim: ft=nginx
map $host $matrix { default synapse; }

server {
    listen      80;
    listen      [::]:80;
    server_name matrix.shore.co.il;
    include     snippets/robots-disallow-all.conf;
    include     snippets/ads-txt.conf;
    include     snippets/security-txt.conf;
    include     snippets/www-acme-challenge.conf;
    include     snippets/redirect-https.conf;
}

server {
    listen      443 ssl http2;
    listen      [::]:443 ssl http2;
    server_name matrix.shore.co.il;
    include     snippets/robots-disallow-all.conf;
    include     snippets/ads-txt.conf;
    include     snippets/security-txt.conf;
    include     snippets/ssl-modern.conf;

    location / {
        proxy_pass              http://$matrix:8008$request_uri;
        proxy_http_version      1.1;
        include                 snippets/proxy-headers.conf;
        client_max_body_size    50m;
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ services:
          - git.shore.co.il
          - kibana.shore.co.il
          - lam.shore.co.il
          - matrix.shore.co.il
          - mta-sts.shore.co.il
          - sogo.shore.co.il
          - vouch.shore.co.il