Ejabberd 17.04 Host auth_method

Hi,
I am using ejabberd 17.04 and i want to configure sepaarte auth_method for each Host in ejabberd.yml
I have following configuration for hosts

hosts:
  - "localhost"
  - "xmpp-server.com"

Can some one tell me how can i accomplish this in ejabberd.yml?

I want to set localhost

I want to set localhost auth_method to internal and xmpp-server.com auth_method to external with an external script path

hassnainalvi wrote: I want to

hassnainalvi wrote:

I want to set localhost auth_method to internal and xmpp-server.com auth_method to external with an external script path

See https://docs.ejabberd.im/admin/configuration/#authentication

Something like

host_config:
  "localhost":
    auth_method: [internal]
  "xmpp-server.com":
    auth_method: [external]
    extauth_program: "/etc/ejabberd/JabberAuth.class.php"
Syndicate content