Scorpion is configured using properties files and code.
The default properties file is
scorpion.properties and is generated when the server is started for the first time.
It contains key-value pairs that are read on startup.
Useful configuration keys are:
scorpion.profilesindicates which profiles are active. The wiki contains a page dedicated to profiles.
scorpion.logindicates the log level of the applications. Valid values are
off. The default value is
scorpion.ipindicates the ip address where the server is started. The default value is
scorpion.portindicates the port where the server is started. The default value is
Configuration from code
Classes marked with the
@Configuration attribute will be marked as configurations. Configurations should extend one ore more configuration interfaces and implement their functions.
Available configuration interfaces are:
ProfilesConfigurationindicates which profiles are always active on the application through the
defaultProfilesproperty, which returns an array of strings.
LanguageConfigurationreturns an associative array of language files to be parsed by the language manager through the
loadLanguagesfunction, where keys are ISO 639-1 codes and the values are the content of a language file. Language files are a list of key-value pairs separated by an equals sign.