Pass Matrix Webhook through reverse proxy

This commit is contained in:
Alexandre Iooss 2019-04-01 17:57:13 +02:00
parent 98c6364394
commit 2158c5c6b9
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 23 additions and 0 deletions

View File

@ -82,3 +82,26 @@ server {
proxy_set_header X-Forwarded-For $remote_addr;
}
}
server {
listen 9442 ssl;
listen [::]:9442 ssl;
# Set witch server name we define
server_name auro.re;
# Separate log files
access_log /var/log/nginx/main.access.log;
error_log /var/log/nginx/main.error.log;
# Use LetsEncrypt SSL
ssl_certificate /etc/letsencrypt/live/auro.re/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/auro.re/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/auro.re/chain.pem;
# For Matrix Appservice Webhooks
location / {
proxy_pass http://synapse.adm.auro.re:9000;
proxy_set_header X-Forwarded-For $remote_addr;
}
}