Sauron Configuration

Sauron configuration settings are stored in config file, which is usually located in /usr/local/etc/sauron/ or in /etc/sauron/ (if Sauron is installed from RPM). This configuration file is parsed actually as a Perl code, so it is possible to set the configuration variables conditionally if desired.

Configuration file contains common configuration settings for all Sauron components (except browser.cgi which uses it's own configuration file config-browser). Here we cover only the basic settings that you need to set before using Sauron. For more advanced settings, see the configuration file where all the advanced configuration options are documented.

General Configuration Options

DB_CONNECT

Database connection parameters string. This defines the database to connect to, and optionally database username and password to use. See the Section called Database Configuration how to setup a database for Sauron.

To setup connection to a database named sauron in localhost, you might want to set this variable to:
           "dbname=sauron user=foo password=bar"
           
Or, if you're connecting to a database at remote computer:
           "host=remotehost port=5432 dbname=sauron user=foo password=bar"
           

PROG_DIR

Base directory for Sauron installation. This should be set to the directory where program files where installed. Usually this is either /usr/local/sauron or /opt/sauron (if installed from RPM).

LOG_DIR

Directory for log files. Currently only the web interface (sauron.cgi) uses this directory to write to sauron.log file in this directory. Remember to make sure that the saurno.cgi has permissions to write into this file.

SERVER_ID

Unique identifier for this Sauron installation. This identifier is used by the web interface to generate unique cookies names, so you can access several different Sauron web interfaces simultaneously from your browser. This identifier is also displayed by the web interface; to help you to identify which Sauron web interface you're currently connected to.