committed by
GitHub
354 changed files with 3511 additions and 1172 deletions
@ -0,0 +1,11 @@ |
|||
[codespell] |
|||
# Skip data tables that contain many short server identifiers (e.g. "fof", "nd") |
|||
skip = |
|||
lgsm/data/*.csv, |
|||
package-lock.json, |
|||
*/package-lock.json, |
|||
node_modules, |
|||
*/node_modules/* |
|||
|
|||
# Ignore common identifiers/acronyms and extensions used throughout LinuxGSM |
|||
ignore-words-list = distroname,fof,nd,sav,parms,ThirdParty |
|||
@ -0,0 +1,2 @@ |
|||
[flake8] |
|||
max-line-length = 120 |
|||
@ -0,0 +1,9 @@ |
|||
title = "LinuxGSM Gitleaks Config" |
|||
|
|||
[allowlist] |
|||
description = "Known false positives" |
|||
regexes = [ |
|||
# Google Analytics 4 Measurement Protocol API secret - not a sensitive credential, |
|||
# it is intentionally embedded in client-side code and is safe to be public. |
|||
'''apisecret="[A-Za-z0-9_\-]+"''', |
|||
] |
|||
@ -0,0 +1,20 @@ |
|||
# Configuration for markdownlint (used by Super Linter) |
|||
|
|||
# MD041: README starts with HTML badges in this repo. |
|||
MD041: false |
|||
|
|||
# MD051: GitHub heading anchor generation can differ (emoji, punctuation). |
|||
MD051: false |
|||
|
|||
# MD013: The project documentation frequently contains long URLs/commands. |
|||
MD013: false |
|||
|
|||
# MD033: The main README uses inline HTML for badges. |
|||
MD033: false |
|||
|
|||
# MD007: Repo uses 2-space indentation for nested lists. |
|||
MD007: |
|||
indent: 2 |
|||
|
|||
# MD030: Repo mixes 1-space unordered and 2-space ordered list markers. |
|||
MD030: false |
|||
@ -0,0 +1 @@ |
|||
disable=SC2154,SC2034 |
|||
@ -0,0 +1,25 @@ |
|||
extends: default |
|||
|
|||
rules: |
|||
document-start: disable |
|||
truthy: disable |
|||
|
|||
line-length: |
|||
max: 200 |
|||
level: warning |
|||
allow-non-breakable-words: true |
|||
allow-non-breakable-inline-mappings: true |
|||
|
|||
braces: |
|||
min-spaces-inside: 0 |
|||
max-spaces-inside: 1 |
|||
min-spaces-inside-empty: 0 |
|||
max-spaces-inside-empty: 0 |
|||
|
|||
empty-lines: |
|||
max: 2 |
|||
max-start: 0 |
|||
max-end: 0 |
|||
|
|||
comments: |
|||
min-spaces-from-content: 1 |
|||
@ -6,6 +6,8 @@ on: |
|||
types: |
|||
- published |
|||
|
|||
permissions: {} |
|||
|
|||
jobs: |
|||
trigger_build_docker-linuxgsm: |
|||
if: github.repository_owner == 'GameServerManagers' |
|||
@ -13,12 +15,22 @@ jobs: |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- name: Trigger Workflow and Wait (linuxgsm) |
|||
uses: convictional/[email protected] |
|||
with: |
|||
owner: GameServerManagers |
|||
repo: docker-linuxgsm |
|||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
|||
workflow_file_name: action-docker-publish.yml |
|||
env: |
|||
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
|||
run: | |
|||
before=$(date -u +%Y-%m-%dT%H:%M:%SZ) |
|||
gh workflow run action-docker-publish.yml --repo GameServerManagers/docker-linuxgsm |
|||
sleep 10 |
|||
run_id=$(gh run list \ |
|||
--workflow action-docker-publish.yml \ |
|||
--repo GameServerManagers/docker-linuxgsm \ |
|||
--created ">=${before}" \ |
|||
--limit 1 \ |
|||
--json databaseId \ |
|||
--jq '.[0].databaseId') |
|||
gh run watch "${run_id}" \ |
|||
--repo GameServerManagers/docker-linuxgsm \ |
|||
--exit-status |
|||
|
|||
trigger_build_docker-gameserver: |
|||
if: github.repository_owner == 'GameServerManagers' |
|||
@ -27,9 +39,19 @@ jobs: |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- name: Trigger Workflow and Wait (gameserver) |
|||
uses: convictional/[email protected] |
|||
with: |
|||
owner: GameServerManagers |
|||
repo: docker-gameserver |
|||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
|||
workflow_file_name: action-docker-publish.yml |
|||
env: |
|||
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
|||
run: | |
|||
before=$(date -u +%Y-%m-%dT%H:%M:%SZ) |
|||
gh workflow run action-docker-publish.yml --repo GameServerManagers/docker-gameserver |
|||
sleep 10 |
|||
run_id=$(gh run list \ |
|||
--workflow action-docker-publish.yml \ |
|||
--repo GameServerManagers/docker-gameserver \ |
|||
--created ">=${before}" \ |
|||
--limit 1 \ |
|||
--json databaseId \ |
|||
--jq '.[0].databaseId') |
|||
gh run watch "${run_id}" \ |
|||
--repo GameServerManagers/docker-gameserver \ |
|||
--exit-status |
|||
|
|||
@ -0,0 +1,3 @@ |
|||
# Prettier auto-commit runs with GITHUB_TOKEN (GitHub App). |
|||
# GitHub blocks that token from creating/updating anything under .github/workflows. |
|||
.github/workflows/** |
|||
@ -1 +1 @@ |
|||
disable=SC2154 |
|||
disable=SC2154,SC2034 |
|||
|
|||
@ -0,0 +1,189 @@ |
|||
################################## |
|||
######## Default Settings ######## |
|||
################################## |
|||
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
|||
# Copy settings from here and use them in either: |
|||
# common.cfg - applies settings to every instance. |
|||
# [instance].cfg - applies settings to a specific instance. |
|||
|
|||
#### Game Server Settings #### |
|||
|
|||
game_type="0" |
|||
game_mode="0" |
|||
ip="0.0.0.0" |
|||
port="27015" |
|||
clientport="27005" |
|||
sourcetvport="27020" |
|||
steamport="26901" |
|||
defaultmap="mcv_siege" |
|||
maxplayers="32" |
|||
tickrate="64" |
|||
|
|||
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|||
startparameters="-game vietnam -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +game_type ${game_type} +game_mode ${game_mode} -nobreakpad" |
|||
|
|||
#### LinuxGSM Settings #### |
|||
|
|||
## LinuxGSM Stats |
|||
# Send useful stats to LinuxGSM developers. |
|||
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
|||
# (on|off) |
|||
stats="off" |
|||
|
|||
## Notification Alerts |
|||
# (on|off) |
|||
|
|||
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
|||
displayip="" |
|||
|
|||
# More info | https://docs.linuxgsm.com/alerts#more-info |
|||
postalert="off" |
|||
|
|||
# Alert on Start/Stop/Restart |
|||
statusalert="off" |
|||
|
|||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
|||
discordalert="off" |
|||
discordwebhook="webhook" |
|||
|
|||
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
|||
emailalert="off" |
|||
email="[email protected]" |
|||
emailfrom="" |
|||
|
|||
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
|||
gotifyalert="off" |
|||
gotifytoken="token" |
|||
gotifywebhook="webhook" |
|||
|
|||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
|||
iftttalert="off" |
|||
ifttttoken="accesstoken" |
|||
iftttevent="linuxgsm_alert" |
|||
|
|||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
|||
pushbulletalert="off" |
|||
pushbullettoken="accesstoken" |
|||
channeltag="" |
|||
|
|||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
|||
pushoveralert="off" |
|||
pushovertoken="accesstoken" |
|||
pushoveruserkey="userkey" |
|||
|
|||
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
|||
rocketchatalert="off" |
|||
rocketchatwebhook="webhook" |
|||
|
|||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
|||
slackalert="off" |
|||
slackwebhook="webhook" |
|||
|
|||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
|||
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
|||
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help". |
|||
telegramapi="api.telegram.org" |
|||
telegramalert="off" |
|||
telegramtoken="accesstoken" |
|||
telegramchatid="" |
|||
curlcustomstring="" |
|||
|
|||
## Updating | https://docs.linuxgsm.com/commands/update |
|||
updateonstart="off" |
|||
|
|||
## Backup | https://docs.linuxgsm.com/commands/backup |
|||
maxbackups="4" |
|||
maxbackupdays="30" |
|||
stoponbackup="on" |
|||
|
|||
## Logging | https://docs.linuxgsm.com/features/logging |
|||
consolelogging="on" |
|||
logdays="7" |
|||
|
|||
## Monitor | https://docs.linuxgsm.com/commands/monitor |
|||
# Query delay time |
|||
querydelay="1" |
|||
|
|||
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
|||
ansi="on" |
|||
|
|||
#### Advanced Settings #### |
|||
|
|||
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
|||
sleeptime="0.5" |
|||
|
|||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
|||
# Server appid |
|||
appid="1136190" |
|||
steamcmdforcewindows="no" |
|||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
|||
branch="" |
|||
betapassword="" |
|||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
|||
steammaster="false" |
|||
|
|||
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
|||
# 1: tmux kill |
|||
# 2: CTRL+c |
|||
# 3: quit |
|||
# 4: quit 120s |
|||
# 5: stop |
|||
# 6: q |
|||
# 7: exit |
|||
# 8: 7 Days to Die |
|||
# 9: GoldSrc |
|||
# 10: Avorion |
|||
# 11: end |
|||
stopmode="3" |
|||
|
|||
## Query mode |
|||
# 1: session only |
|||
# 2: gamedig (gsquery fallback) |
|||
# 3: gamedig |
|||
# 4: gsquery |
|||
# 5: tcp |
|||
querymode="2" |
|||
querytype="protocol-valve" |
|||
|
|||
## Console type |
|||
consoleverbose="yes" |
|||
consoleinteract="yes" |
|||
|
|||
## Game Server Details |
|||
# Do not edit |
|||
gamename="Military Conflict: Vietnam" |
|||
engine="source" |
|||
glibc="2.15" |
|||
|
|||
#### Directories #### |
|||
# Edit with care |
|||
|
|||
## Game Server Directories |
|||
systemdir="${serverfiles}/vietnam" |
|||
executabledir="${serverfiles}" |
|||
executable="./srcds_run_x64" |
|||
servercfgdir="${systemdir}/cfg" |
|||
servercfg="${selfname}.cfg" |
|||
servercfgdefault="server.cfg" |
|||
servercfgfullpath="${servercfgdir}/${servercfg}" |
|||
|
|||
## Backup Directory |
|||
backupdir="${lgsmdir}/backup" |
|||
|
|||
## Logging Directories |
|||
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
|||
gamelogdir="${systemdir}/logs" |
|||
lgsmlogdir="${logdir}/script" |
|||
consolelogdir="${logdir}/console" |
|||
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
|||
consolelog="${consolelogdir}/${selfname}-console.log" |
|||
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
|||
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||
|
|||
## Logs Naming |
|||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|||
|
|||
## Log Parameters |
|||
logtimestamp="off" |
|||
logtimestampformat="%Y-%m-%d %H:%M:%S" |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue