ejabberd-vhost 756 B

1234567891011121314151617181920212223
  1. ## Start of configuration add by letsencrypt container
  2. location ^~ /.well-known/acme-challenge/ {
  3. auth_basic off;
  4. auth_request off;
  5. allow all;
  6. root /usr/share/nginx/html;
  7. try_files $uri =404;
  8. break;
  9. }
  10. ## End of configuration add by letsencrypt container
  11. location = /.well-known/host-meta {
  12. proxy_pass http://ejabberd:80;
  13. proxy_hide_header content-type;
  14. add_header content-type 'application/xrd+xml' always;
  15. add_header Access-Control-Allow-Origin '*' always;
  16. }
  17. location = /.well-known/host-meta.json {
  18. proxy_pass http://ejabberd:80;
  19. proxy_hide_header content-type;
  20. add_header content-type 'application/jrd+json' always;
  21. add_header Access-Control-Allow-Origin '*' always;
  22. }