diff options
| author | Darkelarious <darkelarious@333networks.com> | 2015-02-09 07:58:06 +0100 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2015-02-09 07:58:06 +0100 |
| commit | 5057ec47aa9a1702b2483e0a0b3ba325bb0b7abb (patch) | |
| tree | b1a394f64ec7ec2cf69f33bceb54a5b51199c0a4 /data/masterserver-config.pl | |
| parent | 6ac9d390e417b868b6ed79441b8cc6e1b2ebeb13 (diff) | |
| download | MasterServer-Perl-5057ec47aa9a1702b2483e0a0b3ba325bb0b7abb.tar.gz MasterServer-Perl-5057ec47aa9a1702b2483e0a0b3ba325bb0b7abb.zip | |
receive UDP beacons, validate them and store with country indicator
Diffstat (limited to 'data/masterserver-config.pl')
| -rwxr-xr-x | data/masterserver-config.pl | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/data/masterserver-config.pl b/data/masterserver-config.pl new file mode 100755 index 0000000..f6e0ad7 --- /dev/null +++ b/data/masterserver-config.pl @@ -0,0 +1,179 @@ +package MasterServer; +our (%S, $ROOT); +our %S = ( + +################################################################################ +# Masterserver HOST information # +# # +# Please fill in your contact details here, for two-way synchronization and # +# for your users to be able to contact you. # +# # +# Values may not contain backslashes and quotes: no \ or \\, nor ' and ", # +# unless you know exactly what you're doing! # +# # +################################################################################ + + # example: 333networks -- http://master.333networks.com -- info@333networks.com + contact_details => '333networks -- http://master.333networks.com -- info@333networks.com', + + # host address (and tcp port) + masterserver_address => 'master.333networks.com:28900', + +################################################################################ +# Database Login Configuration # +# # +# Login credentials for the database that was created manually before. # +# Use only one option: Postgresql, SQLite (or future: MySQL) # +# # +################################################################################ + + # Postgresql + dblogin => ['dbi:Pg:dbname=testdatabase', 'unrealmaster', 'unrealmasterpassword'], + + # SQLite + #dblogin => ["dbi:SQLite:dbname=$ROOT/data/database_name.db",'',''], + + # MySQL + #dblogin => ["dbi:mysql:database=database_name;host=localhost;port=3306",'user','password'], + +################################################################################ +# Logging configuration # +# # +# All messages are printed to the log (and screen) by default. The following # +# settings determine the file locatioin and which messages are suppressed. # +# # +################################################################################ + + # log file location + log_dir => "$ROOT/log/", + + #rotate log? options: daily, weekly, monthly, yearly, none + log_rotate => "weekly", + + # print to screen (1=yes, 0=no) + printlog => 1, + + # which messages do you NOT want to see in the logs (and screen)? + suppress => " module debug ", + +################################################################################ +# Network settings # +# # +# Beacon UDP port and Browser TCP port # +# Settings for games that require different data formats # +# # +################################################################################ + + # port settings + listen_port => 28900, # default 28900 + beacon_port => 28906, # default 27900 + + # these games require a special hex format instead of \ip\ip:port\ + hex_format => "bcommander", + +################################################################################ +# Secure/Validate configuration # +# # +# Which servers have to validate? Which games may be ignored? # +# # +################################################################################ + + # Disable checks, all games pass as validated. (0=validate, 1=allow all) + debug_validate => 0, + + # accept only servers that pass the secure/validate challenge + require_secure_beacons => 0, + + # ignore keys from games that use multiple keys or do not support keys at all + ignore_beacon_key => "deusex ut", + ignore_browser_key => "deusex", + +################################################################################ +# Enable + Timer settings # +# # +# When does what process start? Format: after [s], interval [s], # +# maximum cycle time [s] (optional) # +# Wait 60+ seconds before starting timers for incoming beacons # +# # +################################################################################ + + # Synchronization with other 333networks-based masterservers + sync_enabled => 1, + sync_time => [60, 1200], + + # Query UCC-based applets + master_applet_enabled => 1, + master_applet_time => [70, 600], + + # Beacon Checker query all addresses in the database, requesting "basic" and + # "info". Execute at least twice per hour, to avoid time-outs in own data. + # disabling may break support for certain games. + beacon_checker_enabled => 1, + beacon_checker_time => [80, 0.25, 1800], + + # Collect server information for the 333networks main site. Identical + # mechanism as the Beacon Checker. Disable when not interested in UT info. + utserver_query_enabled => 1, + utserver_query_time => [90, 0.125, 240], + + # Maintenance duties like cleaning out old servers/players + maintenance_time => [3600, 60], + +################################################################################ +# Synchronization settings # +# # +# Request the masterlist for selected or all games from other 333networks- # +# based masterservers. # +# # +################################################################################ + + # additional masters to sync with (in addition to db-entries) + sync_masters => [ + { address => "master.333networks.com", port => 28900 }, # default + { address => "master.noccer.de", port => 28900 }, + { address => "master.oldunreal.com", port => 28900 }, + { address => "master.errorist.tk", port => 28900 }, + ], + + # sync all or selected games? + # 0 = all, 1 + gamenames = selected + sync_games => [0], + #sync_games => [1, "ut unreal"], + +################################################################################ +# Query UCC Applets # +# # +# Request the masterlist for single games from the remote UCC applet or # +# equivalent. # +# # +################################################################################ + + # remote applets to be queried + master_applet => [ + {ip => "utmaster.epicgames.com", port => 28900, game => "ut"}, + {ip => "master.hypercoop.tk", port => 28900, game => "unreal"}, + {ip => "master.newbiesplayground.net", port => 28900, game => "unreal"}, + ], + +); #end %S + +################################################################################ +# # +# Supported Games. # +# # +# List of games that are supported by the 333networks masterserver. Note that # +# adding a game does not necessarily mean that suddenly the protocol will # +# be supported. # +# # +# Import either the first or the second file; the first one is a sample file # +# that holds all the game names, but not their keys (public version). The # +# other file is not included in this git and contains both game names and # +# their confidential ciphers. # +# # +# Importing both may give some unstable "invalid gamename" checks. # +# # +################################################################################ +#require "$ROOT/data/supportedgames.pl"; +require "/server/Repositories/supportedgames.pl"; + +1; |
