GetWebHareConfiguration (open)
Get the WebHare installation/configuration parameters
Syntax
LOADLIB "mod::system/lib/configure.whlib";
RECORD FUNCTION GetWebHareConfiguration()Return value
RECORDConfiguration parameters
STRING basedatarootThe base directory for the WebHare data files (dbase, etc). Custom and modulespecific folders should use the varroot or the ephemeralroot
INTEGER baseportBaseport for local services (eg 13679)
STRING configPath to the configuration file
STRING consilioip:port used for consilios
STRING ephemeralrootThe directory for the WebHare on-disk data that is relatively easily recovered after loss (eg /var/ephemeral, used for image- and compilecache)
INTEGER hstrustedportLike trustedport, but opened for the JS webserver. baseport + 3, eg 13682.
STRING installationrootThe WebHare installation root directory (eg /opt/webhare)
STRING logrootThe directory where log files are stored (eg /log/).
STRING ARRAY moduledirsModule search paths
STRING nodeCurrent server's node name in a cluster
INTEGER trustedportPort for incoming LB connections where we trust X-Forwarded-For etc headers. baseport + 5, eg 13684
STRING varrootThe directory for the WebHare on-disk data (eg /var/)
Description
This function returns the various path locations and database settings as configured in the webhare-(default-)config.xml file.