-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
250 lines (227 loc) · 6.17 KB
/
config.example.yaml
File metadata and controls
250 lines (227 loc) · 6.17 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# DiscoPanel Configuration File
# This file contains all configuration options for DiscoPanel
# Server configuration for the DiscoPanel application itself
server:
port: "8080"
host: "0.0.0.0"
read_timeout: 15
write_timeout: 15
idle_timeout: 60
# Database configuration
database:
path: "./data/discopanel.db"
max_connections: 25
max_idle_conns: 5
conn_max_lifetime: 300
# Docker configuration
docker:
host: "unix:///var/run/docker.sock"
version: ""
network_name: "discopanel-network"
registry_url: ""
sync_interval: 5 # Seconds between docker state sync
# Storage configuration
storage:
data_dir: "./data"
backup_dir: "./backups"
temp_dir: "./tmp"
max_upload_size: 524288000 # 500MB in bytes
# Proxy configuration - ENABLE THIS FOR MINECRAFT ROUTING
proxy:
enabled: true
base_url: "mc.example.com" # Your domain for Minecraft servers
listen_port: 25565 # Primary port to listen on (can also use 443)
listen_ports: [25565] # Multiple ports to listen on (listen_port will be added if not present)
port_range_min: 25565
port_range_max: 25665
# Example usage:
# With proxy enabled and base_url set to "mc.example.com":
# - Server named "survival" → Connect via: survival.mc.example.com:25565
# - Server named "creative" → Connect via: creative.mc.example.com:25565
# - Server named "modded" → Connect via: modded.mc.example.com:25565
#
# All servers use the same port (25565) and are routed based on hostname!
#
# DNS Setup Required:
# Add a wildcard DNS record: *.mc.example.com → Your server's IP
# Or add individual A records for each server subdomain
# Minecraft server global configuration defaults
minecraft:
reset_global: false
global_config: # Specifying any of these settings will override the global config default when it is first made, or existing if `reset_global` is `true`
# JVM Configuration
uid: 1000
gid: 1000
memory: "1G"
initMemory: "1G"
maxMemory: "1G"
tz: "UTC"
enableRollingLogs: false
enableJmx: false
jmxHost: ""
useAikarFlags: false
useMeowiceFlags: false
useMeowiceGraalvmFlags: true
jvmOpts: ""
jvmXxOpts: ""
jvmDdOpts: ""
extraArgs: ""
logTimestamp: false
# Server Configuration
type: "VANILLA"
eula: "TRUE"
version: "LATEST"
motd: ""
difficulty: "easy"
icon: ""
overrideIcon: false
maxPlayers: 20
maxWorldSize: 0
allowNether: true
announcePlayerAchievements: true
enableCommandBlock: false
forceGamemode: false
generateStructures: true
hardcore: false
snooperEnabled: true
maxBuildHeight: 256
spawnAnimals: true
spawnMonsters: true
spawnNpcs: true
spawnProtection: 0
viewDistance: 0
seed: ""
mode: "survival"
pvp: true
levelType: "minecraft:default"
generatorSettings: ""
level: "world"
onlineMode: true
allowFlight: false
serverName: ""
serverPort: 0
playerIdleTimeout: 0
syncChunkWrites: false
enableStatus: false
entityBroadcastRangePercentage: 0
functionPermissionLevel: 0
networkCompressionThreshold: 0
opPermissionLevel: 0
preventProxyConnections: false
useNativeTransport: false
simulationDistance: 0
execDirectly: false
stopServerAnnounceDelay: 0
proxy: ""
console: true
gui: true
stopDuration: 60
setupOnly: false
useFlareFlags: false
useSimdFlags: false
# Custom Resource Pack
resourcePack: ""
resourcePackSha1: ""
resourcePackEnforce: false
# Whitelist
enableWhitelist: false
whitelist: ""
whitelistFile: ""
overrideWhitelist: false
# RCON
enableRcon: true
rconPassword: "" # MUST be changed for security
rconPort: 25575
broadcastRconToOps: false
rconCmdsStartup: ""
rconCmdsOnConnect: ""
rconCmdsFirstConnect: ""
rconCmdsOnDisconnect: ""
rconCmdsLastDisconnect: ""
# Auto-Pause
enableAutopause: false
autopauseTimeoutEst: 3600
autopauseTimeoutInit: 600
autopauseTimeoutKn: 120
autopausePeriod: 10
autopauseKnockInterface: "eth0"
debugAutopause: false
# Auto-Stop
enableAutostop: false
autostopTimeoutEst: 3600
autostopTimeoutInit: 1800
autostopPeriod: 10
debugAutostop: false
# Forge Configuration
forgeVersion: ""
forgeInstaller: ""
forgeInstallerUrl: ""
# CurseForge Configuration
cfApiKey: ""
cfApiKeyFile: ""
cfPageUrl: ""
cfSlug: ""
cfFileId: ""
cfModpackZip: ""
cfFilenameMatcher: ""
cfExcludeIncludeFile: ""
cfExcludeMods: ""
cfForceIncludeMods: ""
cfForceSynchronize: false
cfSetLevelFrom: ""
cfParallelDownloads: 4
cfOverridesSkipExisting: false
cfForceReinstallModloader: false
# Modrinth Configuration
modrinthModpack: ""
modrinthModpackVersionType: "release"
modrinthVersion: ""
modrinthLoader: ""
modrinthIgnoreMissingFiles: ""
modrinthExcludeFiles: ""
modrinthForceIncludeFiles: ""
modrinthForceSynchronize: false
modrinthDefaultExcludeIncludes: ""
modrinthOverridesExclusions: ""
modrinthProjects: ""
modrinthDownloadDependencies: "none"
modrinthProjectsDefaultVersionType: "release"
versionFromModrinthProjects: false
# Custom Server Configuration
customServer: ""
customJarExec: ""
# Query Protocol Configuration
enableQuery: false
queryPort: 25565
# Advanced Server Properties
serverPropertiesEscapeUnicode: false
acceptsTransfers: false
broadcastConsoleToOps: true
bugReportLink: ""
enforceSecureProfile: true
hideOnlinePlayers: false
logIps: true
maxChainedNeighborUpdates: 1000000
pauseWhenEmptySeconds: 0
rateLimit: 0
regionFileCompression: "deflate"
resourcePackId: ""
resourcePackPrompt: ""
statusHeartbeatInterval: 0
customServerProperties: ""
# Ops / Admins
userApiProvider: "playerdb"
ops: ""
opsFile: ""
existingOpsFile: "SYNC_FILE_MERGE_LIST"
# Additional Whitelist Options
existingWhitelistFile: "SYNC_FILE_MERGE_LIST"
enforceWhitelist: false
# Logging configuration
logging:
enabled: true
file_path: "./data/discopanel.log"
max_size: 10
max_backups: 5
max_age: 30
compress: true