Skip to end of metadata
Go to start of metadata

NOC stores configuration in INI files in etc/ directory.

INI file format

Comments

Lines starting with # sign considered comments and ignored during processing

Example:

# This is comment line.
# And another comment

Sections

INI file separated to sections. Each section starts with section name enclosed by brackets.

Example:

[section1]
...
[section2]
...
[section3]
 ...

Configuration Variables

Configuration variables are the part of the sections. Each variable set by variable name and variable value divided by = sign. Variable value can be omitted in case of empty value. Trailing spaces are discarded.

Example:

[section1]
var1 = value1
empty_var =

.conf and .defaults

Each configuration consists of two files: .conf and .defaults ones. .defaults contains default values. .defaults are the part of distribution and can be altered by software upgrade. You shall no edit .defaults directly, or your changes can be lost with next update. Edit .conf file instead. .conf contains site-specific settings. Variables in .conf file override default values from .defaults. If no variable set in .conf default value from .defaults will be used.

Changing configuration files

Configuration files are plain text files and can be safely copied between installations, edited directly by text editor or changed via web interface (Main > Setup > Configs)

 

  • No labels