Baldrick.cfg
From CunningPlans
baldrick.cfg is the default filename for the master configuration file that defines a Baldrick Site.
Typically it is installed in the "etc" directory within the cgi-bin directory where baldrick-stub is installed. However, this setting - the directory, and the filename within the directory - may be changed using environmental variables.
baldrick.cfg is parsed with the Perl module Config::General. It includes the following:
- Baldrick section - defines a few global parameters
- PathMap section - (REQUIRED) maps incoming URLs to Modules
- Module section - (REQUIRED) define how a request is to be handled
- UserClass section - define how users are authenticated and loaded
- Database section - define a database connection
- TemplateAdapter section - define a system for generating output
- UserAgentMatch section - allows overriding of Module definition based on incoming UserAgent
An example configuration file can be found in the distribution archive as scripts/etc/baldrick.cfg.sample.
