Chapter 20. Old Way - Editing Configuration File Manually
Prev |  | Next

# Chapter 20. Old Way - Editing Configuration File Manually

Artur Hefczyc <artur.hefczyc@tigase.net> v2.0, June 2014: Reformatted for AsciiDoc. :toc: :numbered: :website: http://tigase.net :Date: 2010-04-06 21:18

Options you most likely have to change at deployment time are:

1. Admin accounts - account names where all admin messages are sent.
2. Hostnames - real and virtual hostnames your server has to serve for.
3. Logs - setting related to log file location and how much information should be logged there.

Please let me know if you think more options should be described here.

At the moment the only way to change configuration is to manually edit XML config file. So be prepared for tough times. The good news it that more user friendly interfaces are scheduled for next release. And it will be also reconfigure server at runtime without need to restart service.

## Admin Accounts

This is the most likely thing to change after you install server and generate default configuration. Actually it is also the easiest option to customize.

Open tigase-config.xml in you favorite text editor and search for string: "admins". You should find section looking like this:

    <entry type="String[]" key="admins">
        <item value="admin%40your.hostname.com"/>
        <item value="admin%40localhost"/>
    </entry>

Characters "%40" stand for '@'. So assuming you have just 1 admin account on your installation which is: "frank@jabber.example.com" you need to replace above code with:

    <entry type="String[]" key="admins">
        <item value="frank%40jabber.example.com"/>
    </entry>

And yes, you can just remove second entry with admin account: "admin@localhost" unless you really want to keep it. Be aware though all system messages will be sent to ALL admin accounts.

Well, if the account does not exists the message is discarded and a warning is be printed in log file. Again, read it again, the previous sentence…​

It means that the admin account has to be also created in normal way on the Jabber server. Just register it using your Jabber client. The admin accounts setting works just as a forward instruction. So as a result all system and admin messages are forwarded to all admin accounts if they exist.

Obviously you can have admin accounts as many as you like:

    <entry type="String[]" key="admins">
        <item value="frank%40jabber.example.com"/>
        <item value="lucy%40jabber.example.com"/>
        <item value="mark%40jabber.example.com"/>
        <item value="brenda%40jabber.example.com"/>
        <item value="luck%40jabber.example.com"/>
    </entry>

Prev |  | Next
Chapter 19. XML Configuration File Description | Home | Hostnames