forked from lloesche/valheim-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults
104 lines (89 loc) · 4.51 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# 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_ARGS=${SERVER_ARGS:-}
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}
# Flag to wipe all downloaded server data on startup (config is untouched)
DEBUG_START_FRESH=${DEBUG_START_FRESH:-false}
# 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 * * * *}
UPDATE_IF_IDLE=${UPDATE_IF_IDLE:-true}
# 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}
# Supervisor http
SUPERVISOR_HTTP=${SUPERVISOR_HTTP:-false}
SUPERVISOR_HTTP_USER=${SUPERVISOR_HTTP_USER:-admin}
SUPERVISOR_HTTP_PASS=${SUPERVISOR_HTTP_PASS:-}
# Status http
STATUS_HTTP=${STATUS_HTTP:-false}
STATUS_HTTP_PORT=${STATUS_HTTP_PORT:-80}
STATUS_HTTP_CONF=${STATUS_HTTP_CONF:-/config/httpd.conf}
STATUS_HTTP_HTDOCS=${STATUS_HTTP_HTDOCS:-/opt/valheim/htdocs}
STATUS_HTTP_HTDOCS=${STATUS_HTTP_HTDOCS%/}
# 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
# Valheim server logs empty lines as well as lines containing a single space.
# It also logs a repeating line "(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)".
# We filter all of this by default.
VALHEIM_LOG_FILTER_VERBOSE=${VALHEIM_LOG_FILTER_VERBOSE:-2}
export VALHEIM_LOG_FILTER_EMPTY=${VALHEIM_LOG_FILTER_EMPTY:-true}
export VALHEIM_LOG_FILTER_MATCH=${VALHEIM_LOG_FILTER_MATCH- }
export VALHEIM_LOG_FILTER_STARTSWITH=${VALHEIM_LOG_FILTER_STARTSWITH-(Filename:}
export VALHEIM_LOG_FILTER_STARTSWITH_AssertionFailed=${VALHEIM_LOG_FILTER_STARTSWITH_AssertionFailed-src/steamnetworkingsockets/clientlib/steamnetworkingsockets_lowlevel.cpp}
if [ "$VALHEIM_PLUS" = true ]; then
export VALHEIM_LOG_FILTER_STARTSWITH_VP=${VALHEIM_LOG_FILTER_STARTSWITH_VP-Fallback handler could not load library}
fi
# Server status
SERVER_STATUS_FILE=${SERVER_STATUS_FILE:-/var/run/valheim-server.status}
# Hooks
PRE_BOOTSTRAP_HOOK=${PRE_BOOTSTRAP_HOOK:-}
POST_BOOTSTRAP_HOOK=${POST_BOOTSTRAP_HOOK:-}
PRE_BACKUP_HOOK=${PRE_BACKUP_HOOK:-}
POST_BACKUP_HOOK=${POST_BACKUP_HOOK:-}
PRE_UPDATE_CHECK_HOOK=${PRE_UPDATE_CHECK_HOOK:-}
POST_UPDATE_CHECK_HOOK=${POST_UPDATE_CHECK_HOOK:-}
PRE_START_HOOK=${PRE_START_HOOK:-}
POST_START_HOOK=${POST_START_HOOK:-}
PRE_RESTART_HOOK=${PRE_RESTART_HOOK:-}
POST_RESTART_HOOK=${POST_RESTART_HOOK:-}
PRE_SERVER_RUN_HOOK=${PRE_SERVER_RUN_HOOK:-}
POST_SERVER_RUN_HOOK=${POST_SERVER_RUN_HOOK:-}
PRE_SERVER_SHUTDOWN_HOOK=${PRE_SERVER_SHUTDOWN_HOOK:-}
POST_SERVER_SHUTDOWN_HOOK=${POST_SERVER_SHUTDOWN_HOOK:-}