30 lines
658 B
Plaintext
30 lines
658 B
Plaintext
#server {
|
|
# listen 80;
|
|
# listen [::]:80;
|
|
# server_name matrix.monarch-pass.net;
|
|
# return 301 https://$host$request_uri;
|
|
#}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
client_max_body_size 100G;
|
|
|
|
server_name matrix.monarch-pass.net;
|
|
|
|
access_log /var/log/nginx/matrix.monarch-pass.net/access.log;
|
|
error_log /var/log/nginx/matrix.monarch-pass.net/error.log;
|
|
|
|
location /.well-known/ {
|
|
root /var/www/html/;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location /_matrix {
|
|
proxy_pass http://127.0.0.1:8008;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_read_timeout 300s;
|
|
}
|
|
}
|