Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Nginx example conf for Synapse matrix Homeserver
# vim: syntax=nginx
server {
listen 80;
return 301 https://$server_name$request_uri;
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
# If you don't wanna serve a site, comment this out
root /var/www/;
index index.html index.htm;
location /_matrix {
proxy_set_header X-Forwarded-For $remote_addr;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.