Basic configuration file example:
{
"Endpoint": "http://*:28017",
"LogToFile": false,
"LogLevel": "Error"
}
Endpoint
- public url for Api listenerLogToFile
- if set true then logs will be stored in folder\server\oxide\logs\RustApi
Users
- list of users, who can use your ApiLogLevel
- to filter log messages and do not spam to console and file
You can specify next levels:
Disable
- Disable (no logs)Error
- Errors only (configured by default)Warning
- Warnings and previousInformation
- Info and previousDebug
- Debug and previous (all logs)
[
{
"Name": "admin",
"Secret": "secret1",
"Permissions": [
"admin"
]
},
{
"Name": "user1",
"Secret": "secret2",
"Permissions": [
"command1"
]
},
{
"Name": "76561198051734570",
"Secret": "06e62911cf8140f4b2c45bda5d9a14d4",
"Permissions": [
"player",
"tester"
]
}
]
Here is just an array of users.
Name
- user title (required)Secret
- used to build authentication token (required)Permissions
- list of assigned permissions (required)
admin
- grant full access to Apihooks
- can run any hooks on serverplayer
- steam authorized users (name will be steam ID)