Skip to content

Commit

Permalink
chore: update server config article (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady authored Mar 23, 2024
1 parent 8e09df2 commit 212d6bc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion articles/configs/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,22 @@
The `server.toml` file is the most important configuration file, it is the main configuration file for your whole server, and will define
important configurations like server name, amount of slots, loaded resources and more.

The current `server.cfg` in `yaml` format is deprecated but will support too.
## Basic configuration for development of JS resources
```toml
# An array of all modules (specific language support on server-side) that should be loaded
modules = ["js-module"]
# An array of all resources that should be loaded
resources = ["example"]

# Enables reconnect command, CEF debug and other developer features
debug = true
```

Here is a list of all configuration options for the `server.toml` and what they are used for:

> [!WARNING]
> DO NOT copy all options into your server config, only use the options you **really** need.
```toml
# The display name of your server
name = "My server name"
Expand Down

0 comments on commit 212d6bc

Please sign in to comment.