nginx_matrix.conf 409 B

1234567891011121314151617181920
  1. server {
  2. listen 8000;
  3. listen [::]:8000;
  4. server_name _;
  5. # required, else the limit is 1mb
  6. client_max_body_size 200M;
  7. location / {
  8. proxy_pass http://localhost:8008;
  9. proxy_set_header X-Forwarded-For $remote_addr;
  10. }
  11. location /.well-known/matrix/server {
  12. return 200 '{"m.server": "$host:443"}';
  13. add_header Content-Type application/json;
  14. }
  15. }