Server Configuration Reference
Server configuration is done through the server.lua
file. This is a special script that has access to some additional functions, such as load_bundle
and load_map
.
Configuration options are defined as global variables from this script.
Configuration Options
Name | Default | Description |
---|---|---|
port | 8147 | The port that the server will listen on. If you are behind a router, this port needs to be forwarded (TCP and UDP). |
max_connections | 32 | The maximum number of concurrent connections that the server will accept. |
client_bundle_port | 8080 | The port at which client bundles are served. Set to 0 to disable serving client bundles from this server (e.g. if you use a custom CDN in client_bundle_base_url). |
client_bundle_base_url | http://localhost:8080 | The URL that clients will be instructed to load client bundles from. In most cases, this should be your server IP with the client_bundle_port. You can also specify a custom URL (e.g. to a CDN using HTTPS) to ease the load on your server and speed up download times for clients. |
Troubleshooting
No known troubleshooting steps.