Server configuration file

View previous topic View next topic Go down

Server configuration file

Post by eve-moo on Thu May 19, 2016 8:35 am

Create the server config file %serverRoot%/etc/eve-server.xml
Make sure to set the proper database username and password.
Here is a sample file.
Code:

<eve-server>
    <rates>
        <corporationStartupCost>1599800</corporationStartupCost>
        <skillRate>1.0</skillRate>
        <secRate>1.0</secRate>
        <npcBountyMultiply>1.0</npcBountyMultiply>
    </rates>

    <account>
        <autoAccountRole>0</autoAccountRole>
        <loginMessage>
            <html>
                <head>
                </head>
                <body>
                    Welcome to <b>EVEmu server</b>.<br>
                    <br>
                    You can find a lot of interesting information about this project at <a href="http://evemu.forumotion.com/">evemu.forumotion.com</a>.<br>
                    <br>
                    You can also join our IRC channel at <b>irc.freenode.net:6667</b>, channel <b>#evemoo</b>.<br>
                    <br>
                    Best wishes,<br>
                    EVEmu development team
                </body>
            </html>
        </loginMessage>
    </account>

    <character>
        <startBalance>6666000000.0</startBalance>
        <startStation>0</startStation>
        <startSecRating>0.0</startSecRating>
        <startCorporation>0</startCorporation>
    </character>

    <database>
        <host>localhost</host>
        <username>evemuUser</username>
        <password>evemuPass</password>
        <db>evemu</db>
        <port>3306</port>
    </database>

    <files>
        <logDir>../log/</logDir>
        <logSettings>../etc/log.ini</logSettings>
        <cacheDir>../server_cache/</cacheDir>
        <imageDir>../image_cache/</imageDir>
    </files>

    <!-- The image server will listen on this port. -->
    <imageServer>
        <imageServerPort>26001</imageServerPort>
    </imageServer>
    <!-- Each network that a connection can connect from needs a separate binding so that the server can properly identify the imageserver. -->
    <!-- If a router forwards connections from an outside network there has to be a separate binding that specifies the outside address for the image server. -->
    <net>
        <!-- The will allow connections from ip addresses on the 192.168.1.xxx network. -->
        <bind>192.168.1.10</bind>
        <port>26000</port>
        <imageServer>192.168.1.10</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>
    <net>
        <!-- The will allow connections from forwarded ip addresses form the internet. -->
        <bind>192.168.1.10</bind>
        <port>26002</port>
        <imageServer>10.11.12.13</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>
    <net>
        <!-- The will allow connections from ip addresses on the 192.168.3.xxx network. -->
        <bind>192.168.3.10</bind>
        <port>26000</port>
        <imageServer>192.168.3.10</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>
    <net>
        <!-- The will allow connections from the localhost. -->
        <bind>localhost</bind>
        <port>26000</port>
        <imageServer>localhost</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>
</eve-server>

Rates.

corporationStartupCost = Set the cost of creating a corporation.
skillRate = Modify the rate at which characters gain skill points.
secRate = Modify the amount of security gain/loss.
npcBountyMultiply = Modify the bounty payout for killing NPC's.

Account

autoAccountRole = Set the role that accounts are created with.
loginMessage = Set the message that is displayed on the login screen.

Character

startBalance = Set the amount of currency that characters start with.
startStation = Set the station that all characters start in or '0' to start in the normal station.
startSecRating = Set the security rating that characters start with.  Defaults to '0'.
startCorporation = Set the corporation that all new characters are in or '0' to use the normal corporation.

Database

host = The hostname of the database server.
username = The username to connect to the server with.
password = The password to connect to the server with.
db = The database to use for the server.
port = The port to connect to the database server.  Defaults to 3306

Files

All paths are relative to the %serverRoot%/etc directory.
logDir = The directory in which to place the log files.
logSettings = The file that contains the log settings.
cacheDir = The directory to save the cache file in.
imageDir = The directory to save the images in.

Image Server

imageServerPort = The port on which the imager server listens.  Defaults to 26001.

Network

Configuring the network can be accomplished by specifying one or more network bindings with the following parameters.
bind = The IP address to bind to.
port = The port to listen on.
imageServer = The IP address of the image server as seen from this binding.
imageServerPort = The port for the image server as seen from this binding.

Consider the following setup.
The server has 2 network cards one with the IP address 192.168.1.10 network and one on 192.168.3.10.  There is also a router connected to the Internet that forwards connections on port 26000 to 192.168.1.10:26002 and port 26001 to 192.168.1.10:26001.  The Internet IP is 10.11.12.13.
Connections on 192.168.1.x network need to access the image server as 192.168.1.10:26001 so we use the following configuration.
Code:

    <net>
        <!-- The will allow connections from ip addresses on the 192.168.1.xxx network. -->
        <bind>192.168.1.10</bind>
        <port>26000</port>
        <imageServer>192.168.1.10</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>
Connections from the Internet need to access the image server as 10.11.12.13:26001 so we use the following configuration.
Code:

    <net>
        <!-- The will allow connections from forwarded ip addresses form the internet. -->
        <bind>192.168.1.10</bind>
        <port>26002</port>
        <imageServer>10.11.12.13</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>
Connections on 192.168.3.x network need to access the image server as 192.168.3.10:26001 so we use the following configuration.
Code:

    <net>
        <!-- The will allow connections from ip addresses on the 192.168.3.xxx network. -->
        <bind>192.168.3.10</bind>
        <port>26000</port>
        <imageServer>192.168.3.10</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>
Connections on localhost need to access the image server as locakhost:26001 so we use the following configuration.
Code:

    <net>
        <!-- The will allow connections from the localhost. -->
        <bind>localhost</bind>
        <port>26000</port>
        <imageServer>localhost</imageServer>
        <imageServerPort>26001</imageServerPort>
    </net>

eve-moo
Admin

Posts : 6
Join date : 2016-05-03

View user profile http://evemu.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum