Merge pull request 'temp130752653' (#6) from temp130752653 into master

Reviewed-on: #6
This commit is contained in:
cronekorkn 2022-10-06 14:35:57 +02:00
commit afe04ae6c8
6 changed files with 57 additions and 1 deletions

4
.envrc
View file

@ -8,6 +8,8 @@ python3 -m pip install --upgrade pip
rm -rf .cache/bw/git_deploy
export BW_GIT_DEPLOY_CACHE=.cache/bw/git_deploy
export EXPERIMENTAL_UPLOAD_VIA_CAT=1
mkdir -p "$BW_GIT_DEPLOY_CACHE"
export EXPERIMENTAL_UPLOAD_VIA_CAT=1
export BW_ITEM_WORKERS=16
export BW_NODE_WORKERS=32
unset PS1

View file

@ -22,6 +22,9 @@ defaults = {
'command': '/opt/backup/backup_all',
'when': '1:00',
'persistent': True,
'after': {
'network-online.target',
},
},
},
}

View file

@ -0,0 +1,38 @@
hostname "CroneKorkN : ${name}"
sv_contact "admin@sublimity.de"
// assign serevr to steam group
sv_steamgroup "${','.join(steamgroups)}"
// no annoying message of the day
motd_enabled 0
// enable cheats
sv_cheats 1
// allow inconsistent files on clients (weapon mods for example)
sv_consistency 0
// connect from internet
sv_lan 0
// join game at any point
sv_allow_lobby_connect_only 0
// allowed modes
sv_gametypes "coop,realism,survival,versus,teamversus,scavenge,teamscavenge"
// network
sv_minrate 30000
sv_maxrate 60000
sv_mincmdrate 66
sv_maxcmdrate 101
// logging
sv_logsdir "logs-${name}" //Folder in the game directory where server logs will be stored.
log on //Creates a logfile (on | off)
sv_logecho 0 //default 0; Echo log information to the console.
sv_logfile 1 //default 1; Log server information in the log file.
sv_log_onefile 0 //default 0; Log server information to only one file.
sv_logbans 1 //default 0;Log server bans in the server logs.
sv_logflush 0 //default 0; Flush the log files to disk on each write (slow).

View file

@ -24,6 +24,15 @@ defaults = {
},
'includes': {},
},
'systemd': {
'units': {
'nginx.service.d/override.conf': {
'Unit': {
'After': {'network-online.target'},
},
},
},
},
}
@metadata_reactor.provides(

View file

@ -16,6 +16,7 @@ def systemd(metadata):
f'{name}.timer': {
'Unit':{
'Description': f'{name} timer',
'After': config.get('after', set()),
},
'Timer': {
'OnCalendar': config['when'],

View file

@ -4,6 +4,9 @@ defaults = {
'command': '/opt/zfs-mirror',
'when': '2:00',
'persistent': True,
'after': {
'network-online.target',
},
},
},
}