This commit is contained in:
root 2022-12-20 11:59:53 +08:00
parent 7d341187f5
commit bcd14299e5
11 changed files with 411 additions and 74 deletions

View file

@ -30,13 +30,13 @@ server {
add_header Access-Control-Allow-Origin *;
}
location ~* ^(\/_matrix|\/_synapse) {
proxy_pass http://localhost:8008;
proxy_pass http://127.0.1.1:8008;
proxy_set_header X-Forwarded-For $remote_addr;
# Nginx by default only allows file uploads up to 1M in size
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
}
location /admin/ {
proxy_pass http://localhost:8100/;
proxy_pass http://127.0.1.1:8100/;
proxy_set_header X-Forwarded-For $remote_addr;
}