· 6 years ago · Oct 12, 2019, 03:24 PM
1##################################
2######## Common Settings #########
3##################################
4# PLACE GLOBAL SETTINGS HERE
5## These settings will apply to all instances
6
7#### Server Settings ####
8
9## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
10# https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Starting_the_Server
11# [Game Modes] gametype gamemode mapgroup (you can mix these across all Game Modes except Danger Zone, but use only one)
12# Arms Race 1 0 mg_armsrace
13# Classic Casual 0 0 mg_casualsigma, mg_casualdelta
14# Classic Competitive 0 1 mg_active, mg_reserves, mg_hostage, mg_de_dust2
15# Custom 3 0
16# Deathmatch 1 2 mg_deathmatch
17# Demolition 1 1 mg_demolition
18# Wingman 0 2
19# Danger Zone 6 0 mg_dz_blacksite (map: dz_blacksite), mg_dz_sirocco (map: dz_sirocco)
20gametype="0"
21gamemode="2"
22mapgroup="mg_active"
23ip="192.168.2.34"
24port="27015"
25clientport="27005"
26sourcetvport="27020"
27defaultmap="de_cbble"
28maxplayers="16"
29tickrate="128"
30
31## Required: Game Server Login Token
32# GSLT is required for running a public server.
33# More info: https://linuxgsm.com/gslt
34gslt="983BF399A07DB1FF60E3007633CCA7B9"
35
36## Workshop Parameters | https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators
37# To get an API key visit - https://steamcommunity.com/dev/apikey
38wsapikey=""
39wscollectionid=""
40wsstartmap=""
41
42## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
43fn_parms(){
44parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount 983BF399A07DB1FF60E3007633CCA7B9 -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_type ${gametype} +game_mode ${gamemode} +host_workshop_collection ${wscollectionid} +workshop_start_map ${wsstartmap} -authkey ${wsapikey} -nobreakpad"
45}
46
47#### LinuxGSM Settings ####
48
49## Notification Alerts
50# (on|off)
51
52# Display IP | https://docs.linuxgsm.com/alerts#display-ip
53displayip=""
54
55# More info | https://docs.linuxgsm.com/alerts#more-info
56postalert="off"
57postdays="7"
58posttarget="https://hastebin.com"
59
60# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
61discordalert="off"
62discordwebhook="webhook"
63
64# Email Alerts | https://docs.linuxgsm.com/alerts/email
65emailalert="off"
66email="email@example.com"
67emailfrom=""
68
69# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
70iftttalert="off"
71ifttttoken="accesstoken"
72iftttevent="linuxgsm_alert"
73
74# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
75mailgunalert="off"
76mailguntoken="accesstoken"
77mailgundomain="example.com"
78mailgunemailfrom="alert@example.com"
79mailgunemail="email@myemail.com"
80
81# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
82pushbulletalert="off"
83pushbullettoken="accesstoken"
84channeltag=""
85
86# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
87pushoveralert="off"
88pushovertoken="accesstoken"
89
90# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
91# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
92# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
93# any custom string in curl - simple ignore this parameter.
94telegramalert="off"
95telegramtoken="accesstoken"
96telegramchatid=""
97curlcustomstring=""
98
99## Updating | https://docs.linuxgsm.com/commands/update
100updateonstart="on"
101
102## Backup | https://docs.linuxgsm.com/commands/backup
103maxbackups="4"
104maxbackupdays="30"
105stoponbackup="on"
106
107## Logging | https://docs.linuxgsm.com/features/logging
108consolelogging="on"
109logdays="7"
110
111## Monitor | https://docs.linuxgsm.com/commands/monitor
112# Query delay time
113querydelay="1"
114
115#### LinuxGSM Advanced Settings ####
116
117# ANSI Colors
118ansi="on"
119
120# Message Display Time
121sleeptime="0.5"
122
123## SteamCMD Settings
124# Server appid
125appid="740"
126# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
127branch=""
128# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
129steammaster="true"
130
131## LinuxGSM Server Details
132# Do not edit
133gamename="Counter-Strike: Global Offensive"
134engine="source"
135glibc="2.15"
136
137#### Directories ####
138# Edit with care
139
140## Server Specific Directories
141systemdir="${serverfiles}/csgo"
142executabledir="${serverfiles}"
143executable="./srcds_run"
144servercfg="${servicename}.cfg"
145servercfgdefault="server.cfg"
146servercfgdir="${systemdir}/cfg"
147servercfgfullpath="${servercfgdir}/${servercfg}"
148
149## Backup Directory
150backupdir="${lgsmdir}/backup"
151
152## Logging Directories
153logdir="${rootdir}/log"
154gamelogdir="${systemdir}/logs"
155lgsmlogdir="${logdir}/script"
156consolelogdir="${logdir}/console"
157lgsmlog="${lgsmlogdir}/${servicename}-script.log"
158consolelog="${consolelogdir}/${servicename}-console.log"
159alertlog="${lgsmlogdir}/${servicename}-alert.log"
160postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
161
162## Logs Naming
163lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
164consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"