ProDiKi applications get (by default) basic configuration options from the file pdk.cfg,
located in (default) /usr/local/prodiki/conf directory.
File syntax is based in variables (case insensitive, even space insensitive) with assigned
values, one at a line. Comments and empty lines are allowed.
These are the defined variables (or keywords):
KeyWord Description Default Path Prodiki base path /usr/local/prodiki Config Path Where to find configuration files, relative to Path conf Log Path Where to set log files, relative to Path logs Data Path Where to find data files, relative to Path data Font Path Where to find fonts (parent directory), relative to Path font Log Quota Maximum allowed size for every log file. After that, files are rotated (once) Debug Level Log verbosity (the higher, the more verbose) 1 Debug Filter Log verbosity (mask: every bit allows one kind of debugging info) not used Source File Default file to play/edit. Overriden by command line option -b story.xml Screen Width Desired screen/window width, in pixels. Overriden by command line option -sw Screen Height Desired screen/window height, in pixels. Overriden by command line option -sh Full Screen Full screen mode (on/yes to activate)* off WI Listen IP Address and Port where prodikiwi will listen for http connections User User (name or ID) to run as Group Group (name or ID) to run as * Be careful with Full Screen mode, as it blocks the terminal, and if
you set for loop presentation, the only way to close the application is from another (remote) terminal.
This mode only works if running as a daemon (not using -d command line option).
Example configuration might be something like:
###
### Sample configuration file for ProDiKi
###
# Case insensitive (for variables, NOT for values like paths, etc.)
# Keywords may have or not spaces or tabs (e.g. "LogPath" is like "Log path")
# Path to everything (root path)
Path = /usr/local/prodiki
# Relative path to config files
Config Path = conf
# Relative path to log files
Log Path = logs
# Relative path to data files
Data Path = data
# Relative path to font files and/or directories
Font Path = font
# Max size for log files before they are rotated
Log Quota = 6M
# Debug Level (to limit/increase logging verbosity)
Debug Level = 5
# Web interface connection config.
# You may specify address, address:port, or only :port
WI Listen = 0.0.0.0:8008