Configuration of ejabberd.yml file for mod_disco module?

I am working on a chat application , which is using ejabberd server and xmpp for conversation and registering the users. I am facing a problem during adding mod_disco module in ejabberd.yml file. i read the documentation of ejabberd regarding to this and i found mod_disco module like:

modules:
  ...
  mod_disco:
    server_info:
      -
        modules: all
        name: "abuse-addresses"
        urls: ["mailto:abuse@shakespeare.lit"]
      -
        modules: [mod_muc]
        name: "Web chatroom logs"
        urls: ["http://www.example.org/muc-logs"]
      -
        modules: [mod_disco]
        name: "feedback-addresses"
        urls:
          - "http://shakespeare.lit/feedback.php"
          - "mailto:feedback@shakespeare.lit"
          - "xmpp:feedback@shakespeare.lit"
      -
        modules:
          - mod_disco
          - mod_vcard
        name: "admin-addresses"
        urls:
          - "mailto:xmpp@shakespeare.lit"
          - "xmpp:admins@shakespeare.lit"

and my ejabberd.yml file modules mod_disco is like:

mod_disco:
    server_info:
       modules: [mod_disco]
       name: "feedback-addresses"
       urls:
          - "mailto:admin@TT_CPU_076"
       modules:
         - mod_disco
         - mod_vcard
       name: "admin-addresses"
       urls:
         - "mailto:admin@TT_CPU_076"
         - "xmpp:admin@TT_CPU_076"

but i am not getting these urls that what are the uses of these urls and are these urls are ejabberd_ids or something else. when i am going to add these urls as my ejabberd_ids then i am getting an error like:

<iq xmlns="jabber:client" from="9197184067832@tt_cpu_076" to="919891379856@tt_cpu_076/18227517093638798592674" id="info1" type="error"><query xmlns="http://jabber.org/protocol/disco#info"></query><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></service-unavailable><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Not subscribed</text></error></iq>.

Your help will be appreciable. thanks alot.

Your config lacks the -

Your config lacks the - character before each section. Try the example option, it works correctly for me. Those addresses are provided to clients that query the service discovery, they are used by users in case of problems.

will you please clarify to me

will you please clarify to me with a small example. thanks

This is correct:

This is correct:

    server_info:
      -
        modules: all
        name: "abuse-addresses"
        urls: ["mailto:abuse@shakespeare.lit"]

This is wrong:

    server_info:
        modules: all
        name: "abuse-addresses"
        urls: ["mailto:abuse@shakespeare.lit"]
Syndicate content