ServerController/config.cfg

55 lines
2.2 KiB
INI

# Syntax for this config file:
# Comments are marked with #
# Every line needs 2 things, a name and a value
# Name and value are separated by whitespace
# Leading and trailing whitespace is irrelevant, so feel free to indent to increase readability
# There must not be any whitespace inside of values.
# For example, file paths must not have spaces in them, otherwise the parser will not work
# Names are case sensitive
# The port the web server will listen on
port 8888 # Inline comments are supported
# How often the server utilization will be refreshed in seconds
server-stat-refresh 0.5
# program defines the name of a program to launch and manage.
# It also marks the beginning of the program definition
# The program name needs to have at least these attributes immediately following:
# - id
# - path
program Godot
# ID is the internal ID of the program. It is an unsigned char, so there cannot be more than 255 programs total
id 0 # REQUIRED
# The path to the program binary / executable
# The controller will fork, replace stdin, stdout, and sterr with pipes, and then execv this path
path ~/Documents/Godot/Versions/Godot_v4.4.1-stable_linux.x86_64 # REQUIRED
# Indicates if the site/api should allow viewing if the program is running or not
status-console 1 # Optional. Will default to 1 if not defined
# Boolean. 0 for false, 1 for true. Indicates if the site/api should allow sending commands to the program stdin
# Useful for game servers that allow console commands
admin-console 0 # Optional. Will default to 0 if not defined
# user defines the name of a use
user Nolan
# Like program IDs, it is an unsigned char. Maximum value of 255
id 0 # REQUIRED
# Indicates a program that a user has admin access to by ID
# -1 indicates universal admin access
# This name can be repeated as many times as necessary
admin -1 # Optional
# Indicates a program that a user can turn on or off by ID
# -1 indicates universal admin access
# This name can be repeated as many times as necessary
launch -1 # Optional
# Indicates a program that a user may view, but without admin access by ID
# -1 indicates universal view privilages
# This name can be repeated as many times as necessary
view -1 # Optional