Skip to content

Instantly share code, notes, and snippets.

@zoglesby
Created March 19, 2018 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoglesby/9532b1d73b259645fceeee787fe2bb30 to your computer and use it in GitHub Desktop.
Save zoglesby/9532b1d73b259645fceeee787fe2bb30 to your computer and use it in GitHub Desktop.
# Default server configuration
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name matrix.domain.net;
ssl_certificate /path/to/cert; # managed by Certbot
ssl_certificate_key /path/to/cert/privkey.pem; # managed by Certbot
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
location /_matrix {
proxy_pass http://localhost:8008;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment