envsdotnet-matrix-conf/etc/nginx/sites-available/matrix.envs.net.conf

55 lines
1012 B
Plaintext
Raw Normal View History

2021-08-01 08:34:00 -04:00
server {
listen 80 default_server;
2022-01-05 09:43:39 -05:00
listen [::]:80 default_server;
2022-01-09 06:46:03 -05:00
server_name matrix.envs.net;
2021-08-01 08:34:00 -04:00
location / {
return 307 https://$host$request_uri;
}
location /.well-known/acme-challenge/ {
alias /var/lib/letsencrypt/.well-known/acme-challenge/;
}
}
2022-01-05 09:43:39 -05:00
# WORKERS
2022-01-09 06:46:03 -05:00
include include.d/upstream_workers.conf;
2021-08-01 08:34:00 -04:00
server {
listen 443 ssl http2 default_server;
2022-01-05 09:43:39 -05:00
listen [::]:443 ssl http2 default_server;
2021-08-01 08:34:00 -04:00
server_name matrix.envs.net;
include snippets/ssl.conf;
## well-known
2022-11-29 09:25:10 -05:00
include include.d/synapse-wellknown.conf;
2021-08-01 08:34:00 -04:00
2022-01-05 09:43:39 -05:00
# workers
2021-08-01 08:34:00 -04:00
include include.d/generic_worker.conf;
2022-01-05 09:43:39 -05:00
# mjolnir report
include include.d/mjolnir-report.conf;
2021-08-01 08:34:00 -04:00
##
2022-01-05 09:43:39 -05:00
location ~ ^(/_matrix|/_synapse/client) {
2021-08-01 08:34:00 -04:00
include include.d/synapse-proxy.conf;
2022-01-05 09:43:39 -05:00
proxy_pass http://localhost:8008;
2021-08-01 08:34:00 -04:00
}
# /synapse/admin
2022-01-05 09:43:39 -05:00
include include.d/synapse-admin.conf;
2021-08-01 08:34:00 -04:00
2022-01-05 09:43:39 -05:00
# media-repo
include include.d/media-repo.conf;
2021-08-01 08:34:00 -04:00
2022-01-05 09:43:39 -05:00
# MAUBOT
include include.d/maubot.conf;
2021-08-01 08:34:00 -04:00
##
location / {
include include.d/synapse-proxy.conf;
2022-01-05 09:43:39 -05:00
proxy_pass http://localhost:8008;
2021-08-01 08:34:00 -04:00
}
}