Pass Matrix Webhook through reverse proxy
This commit is contained in:
parent
98c6364394
commit
2158c5c6b9
1 changed files with 23 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue