server { listen 8000; listen [::]:8000; server_name _; # required, else the limit is 1mb client_max_body_size 20M; location /_matrix { proxy_pass http://localhost:8008; proxy_set_header X-Forwarded-For $remote_addr; } location / { root /app/code/nginx; index index.html; } }