21 lines
409 B
Plaintext
21 lines
409 B
Plaintext
server {
|
|
listen 8000;
|
|
listen [::]:8000;
|
|
|
|
server_name _;
|
|
|
|
# required, else the limit is 1mb
|
|
client_max_body_size 200M;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8008;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
}
|
|
|
|
location /.well-known/matrix/server {
|
|
return 200 '{"m.server": "$host:443"}';
|
|
add_header Content-Type application/json;
|
|
}
|
|
|
|
}
|