# 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
client_max_body_size 50M;
# Synapse responses may be chunked, which is an HTTP/1.1 feature.
proxy_http_version 1.1;
@kurator88
server {
server_name sadium.cyou;
listen 8448 ssl http2 default_server; #федерация
location / {
# proxy_pass http://localhost:port;
root /path/public;
index index.html;
}
location ~ ^(/_matrix|/_synapse/client|/_synapse/admin) {
proxy_pass http://localhost:port; #synapse
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
# 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
client_max_body_size 50M;
# Synapse responses may be chunked, which is an HTTP/1.1 feature.
proxy_http_version 1.1;
}
@kurator88
server {
server_name sadium.cyou;
listen 8448 ssl http2 default_server; #федерация
location / {
# proxy_pass http://localhost:port;
root /path/public;
index index.html;
}
location ~ ^(/_matrix|/_synapse/client|/_synapse/admin) {
proxy_pass http://localhost:port; #synapse
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;