Created
March 19, 2018 15:58
-
-
Save zoglesby/9532b1d73b259645fceeee787fe2bb30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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