forked from KierranM/valheim-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults
60 lines (51 loc) · 2.69 KB
/
defaults
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# The following are default values.
# They can be overridden by supplying the -e VAR=value option to the containerizer.
# The timezone this container is running in
TZ=${TZ:-Etc/UTC}
# Valheim dedicated server related values
WORLD_NAME=${WORLD_NAME:-Dedicated}
SERVER_NAME=${SERVER_NAME:-My Server}
SERVER_PORT=${SERVER_PORT:-2456}
SERVER_PASS=${SERVER_PASS-secret}
SERVER_PUBLIC=${SERVER_PUBLIC:-1}
[ "$SERVER_PUBLIC" = true ] && SERVER_PUBLIC=1
[ "$SERVER_PUBLIC" = false ] && SERVER_PUBLIC=0
# steamcmd.sh arguments
STEAMCMD_ARGS=${STEAMCMD_ARGS-validate}
# How often we check for Valheim server updates
# This used to be 900 (15 min) and is here for backwards
# compatibility reasons. We now set it to 10 years by default
# and use a cron that sends SIGHUP instead
UPDATE_INTERVAL=${UPDATE_INTERVAL:-315360000}
# When we check for updates
UPDATE_CRON=${UPDATE_CRON-*/15 * * * *}
# What time we restart the valheim-server
# This is usful to mitigate the effects of memory/resource leaks
RESTART_CRON=${RESTART_CRON-0 5 * * *}
# World backup related settings
BACKUPS=${BACKUPS:-true}
# Legacy interval variable used to be 3600 (1h)
BACKUPS_INTERVAL=${BACKUPS_INTERVAL:-315360000}
BACKUPS_CRON=${BACKUPS_CRON-0 * * * *}
BACKUPS_DIRECTORY=${BACKUPS_DIRECTORY:-/config/backups}
BACKUPS_MAX_AGE=${BACKUPS_MAX_AGE:-3}
# Mod support
VALHEIM_PLUS=${VALHEIM_PLUS:-false}
VALHEIM_PLUS_CFG_ENV_PREFIX=${VALHEIM_PLUS_CFG_ENV_PREFIX:-VPCFG_}
# Permissions
PERMISSIONS_UMASK=${PERMISSIONS_UMASK:-022}
DEFAULT_DIRECTORY_PERMISSIONS=${DEFAULT_DIRECTORY_PERMISSIONS:-$(printf "%#o" $(( 8#0777-8#$PERMISSIONS_UMASK )))}
DEFAULT_FILE_PERMISSIONS=${DEFAULT_FILE_PERMISSIONS:-$(printf "%#o" $(( 8#0666-8#$PERMISSIONS_UMASK )))}
CONFIG_DIRECTORY_PERMISSIONS=${CONFIG_DIRECTORY_PERMISSIONS:-$DEFAULT_DIRECTORY_PERMISSIONS}
CONFIG_FILE_PERMISSIONS=${CONFIG_FILE_PERMISSIONS:-$DEFAULT_FILE_PERMISSIONS}
WORLDS_DIRECTORY_PERMISSIONS=${WORLDS_DIRECTORY_PERMISSIONS:-$DEFAULT_DIRECTORY_PERMISSIONS}
WORLDS_FILE_PERMISSIONS=${WORLDS_FILE_PERMISSIONS:-$DEFAULT_FILE_PERMISSIONS}
BACKUPS_DIRECTORY_PERMISSIONS=${BACKUPS_DIRECTORY_PERMISSIONS:-$DEFAULT_DIRECTORY_PERMISSIONS}
BACKUPS_FILE_PERMISSIONS=${BACKUPS_FILE_PERMISSIONS:-$DEFAULT_FILE_PERMISSIONS}
VALHEIM_PLUS_CONFIG_DIRECTORY_PERMISSIONS=${VALHEIM_PLUS_CONFIG_DIRECTORY_PERMISSIONS:-$DEFAULT_DIRECTORY_PERMISSIONS}
VALHEIM_PLUS_CONFIG_FILE_PERMISSIONS=${VALHEIM_PLUS_CONFIG_FILE_PERMISSIONS:-$DEFAULT_FILE_PERMISSIONS}
# Server log filter
DEFAULT_LOG_FILTER='grep --line-buffered -v -e "^\s*$" -e "^(Filename:"'
SERVER_LOG_FILTER=${SERVER_LOG_FILTER:-$DEFAULT_LOG_FILTER}
SERVER_LOG_STDOUT_FILTER=${SERVER_LOG_STDOUT_FILTER:-$SERVER_LOG_FILTER}
SERVER_LOG_STDERR_FILTER=${SERVER_LOG_STDERR_FILTER:-$SERVER_LOG_FILTER}