ejabberd-vhost 478 B

12345678910111213
  1. location = /.well-known/host-meta {
  2. proxy_pass http://ejabberd:80;
  3. proxy_hide_header content-type;
  4. add_header content-type 'application/xrd+xml' always;
  5. add_header Access-Control-Allow-Origin '*' always;
  6. }
  7. location = /.well-known/host-meta.json {
  8. proxy_pass http://ejabberd:80;
  9. proxy_hide_header content-type;
  10. add_header content-type 'application/jrd+json' always;
  11. add_header Access-Control-Allow-Origin '*' always;
  12. }