//================= Hercules Configuration ================================ //= _ _ _ //= | | | | | | //= | |_| | ___ _ __ ___ _ _| | ___ ___ //= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| //= | | | | __/ | | (__| |_| | | __/\__ \ //= \_| |_/\___|_| \___|\__,_|_|\___||___/ //================= License =============================================== //= This file is part of Hercules. //= http://herc.ws - http://github.com/HerculesWS/Hercules //= //= Copyright (C) 2014-2025 Hercules Dev Team //= //= Hercules is free software: you can redistribute it and/or modify //= it under the terms of the GNU General Public License as published by //= the Free Software Foundation, either version 3 of the License, or //= (at your option) any later version. //= //= This program is distributed in the hope that it will be useful, //= but WITHOUT ANY WARRANTY; without even the implied warranty of //= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //= GNU General Public License for more details. //= //= You should have received a copy of the GNU General Public License //= along with this program. If not, see . //========================================================================= //= Api Server Configuration File //========================================================================= api_configuration: { @include "conf/global/console.conf" @include "conf/global/sql_connection.conf" // remove disconnected players from api server after timeout in ms. remove_disconnected_delay: 50000 // max connections at same time from same ip address (default 5) ip_connections_limit: 5 // Information related to inter-server behavior inter: { // Interserver communication passwords, set in the login server database userid: "s1" passwd: "p1" // Login Server IP // The api server connects to the login server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. //login_ip: "127.0.0.1" // Character Server IP // The api server connects to the character server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. //char_ip: "127.0.0.1" // The api server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. //bind_ip: "127.0.0.1" // Login Server Port login_port: 6900 // Character Server Port char_port: 6121 // Api Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. //api_ip: "127.0.0.1" // Api Server Port api_port: 7121 } } import: "conf/import/api-server.conf"