server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name matrix.fuz.re; # SSL ssl_certificate /etc/letsencrypt/live/matrix.fuz.re/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/matrix.fuz.re/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/matrix.fuz.re/chain.pem; # security include snippets/security.conf; # logging access_log /var/log/nginx/matrix.fuz.re.access.log; error_log /var/log/nginx/matrix.fuz.re.error.log warn; # reverse proxy location / { proxy_pass http://127.0.0.1:8080; include snippets/proxy.conf; } # additional config include snippets/general.conf; } # HTTP redirect server { listen 80; listen [::]:80; server_name matrix.fuz.re; include snippets/letsencrypt.conf; location / { return 301 https://matrix.fuz.re$request_uri; } }