Server Config File
~/automodpack/automodpack-server.json
Name | Default Value | Description |
---|---|---|
DO_NOT_CHANGE_IT | <file version> | File version number used for auto conversion old config versions to new ones with automodpack update. |
modpackName | "" | The name of the server modpack, shows while downloading modpack and that's how modpack directory gets called inside ~/automodpack/modpacks/ . |
modpackHost | true | Starts modpack host server. |
generateModpackOnStart | true | Automatically regenerate modpack metadata when the server starts. |
syncedFiles | "/mods/*.jar", "/kubejs/**", "!/kubejs/server_scripts/**", "/emotes/*" | A list of relative paths from the root folder of the Minecraft server that will be synced to the modpack. Use wildcards like * to include multiple files from this directory (e.g., /mods/*.jar ). Or use ** (double star) to recursively include all files and subdirectories from a folder (e.g., /config/** ). Prefix a path with ! to exclude it from syncing. Note: This does not copy the files; it only defines what will be available on the client side under ~/.minecraft/ . |
allowEditsInFiles | "/options.txt", "/config/**" | A list of files that clients are allowed to edit. In other words, files that are downloaded only one time and then ignored from updating. Configuration works exactly the same way syncedFiles does. |
autoExcludeServerSideMods | true | Automatically excludes server-side mods from the modpack. (Works only if mod developer specified environment type in mod metadata) |
autoExcludeUnnecessaryFiles | true | Auto skip files which are: empty, hidden, temporary, disabled or backup. |
requireAutoModpackOnClient | true | Whether or not this mod is optional for clients to join server. |
nagUnModdedClients | true | If true clients without AutoModpack will be nagged with a chat message on join. To work requires requireAutoModpackOnClient to be false . |
nagMessage | "This server provides dedicated modpack through AutoModpack!" | The message that will be displayed to clients without AutoModpack. To work requires nagUnModdedClients to be true . |
nagClickableMessage | "Click here to get the AutoModpack!" | The clickable part of the message that will be displayed to clients without AutoModpack. To work requires nagUnModdedClients to be true . |
nagClickableLink | "https://modrinth.com/project/automodpack" | The link that will be opened when the message is clicked. To work requires nagUnModdedClients to be true . |
bindAddress | "" | The address to which the modpack host server binds. Leave this empty to automatically determine a local address (typically 0.0.0.0 or ::0 ). When bindPort is set to -1 , this value is ignored and the modpack host will be bound to the same address as the Minecraft server, as specified in the server.properties file. |
bindPort | -1 | The port number on which the modpack host server listens. If set to -1 , the modpack will be hosted directly on the port of your Minecraft server. |
addressToSend | "" | The address to the modpack host which will be used by clients to download the modpack. If empty, clients will use the same address they used to connect to the Minecraft server. (Do not include the port there, use portToSend instead) |
localAddressToSend | "" | Same as addressToSend , but sent only to the clients connecting from the same private network as the minecraft server is hosted on. |
portToSend | -1 | The port number that is sent alongside the addressToSend or localAddressToSend . If set to -1 , the port to which the modpack host is bound will be sent. |
disableInternalTLS | false | Disables internal TLS management. If enabled, you must manage TLS externally, e.g. on a reverse proxy. When using this option, change bindPort and set bindAddress to a loopback address (e.g. 127.0.0.1 ), so the unencrypted traffic between the modpack host and the reverse proxy isn't leaked. |
updateIpsOnEveryStart | false | Updates addressToSend and localAddressToSend on every server start. Might be useful if you have dynamic IP address. (Use only if you really need it!) |
bandwidthLimit | 0 | Upload limit in Mbps that modpack host server is restricted to. (Value has to be an Integer, 0 - means unlimited) |
validateSecrets | true | Makes modpack host validate and authorize modpack download attempts using unique secrets. |
secretLifetime | 336 | Time in hours that a player's secret remains valid. |
selfUpdater | false | Turn on/off all automodpack updates. This does not affect the mod's activity in installing modpacks. |
acceptedLoaders | "<mod loader used by server>" | Allows players from different modloaders to connect to your server (as long, automodpack support that loader and other mods on your server aren't incompatible with each other) with the same modpack. (use with caution, some mods may not work on both loaders) |