From adc906096f4644788b970e5ed936ca3e70bde2e8 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 12 Sep 2019 17:07:46 +0200 Subject: Add VNDB::Config module and unified conf.pl config file This gets rid of global.pl, config.pl and config3.pl and uses the cleaner config3.pl format for the config file. The config is easily accessible from anywhere by importing the new VNDB::Config module; The global $VNDB::S,O,M,ROOT variables have been removed. Sorry for all the churn... --- data/config_example.pl | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 data/config_example.pl (limited to 'data/config_example.pl') diff --git a/data/config_example.pl b/data/config_example.pl deleted file mode 100644 index 30731d08..00000000 --- a/data/config_example.pl +++ /dev/null @@ -1,41 +0,0 @@ -package VNDB; - -# This file is used to override config options in global.pl. -# You can override anything you want. - -%O = ( - %O, - db_login => [ 'dbi:Pg:dbname=vndb', 'vndb_site', 'vndb_site' ], - #logfile => $ROOT.'/err.log', - xml_pretty => 0, - log_queries => 0, - debug => 1, - cookie_defaults => { domain => 'localhost', path => '/' }, - mail_sendmail => 'log', -); - -%S = ( - %S, - url => 'http://localhost:3000', - url_static => 'http://localhost:3000', - form_salt => '', - scrypt_salt => '', - # Uncomment if you want to test password strength against a dictionary. See - # lib/PWLookup.pm for instructions on how to create the database file. - #password_db => $ROOT.'/data/passwords.dat', -); - -$M{db_login} = { dbname => 'vndb', user => 'vndb_multi', password => 'vndb_multi' }; - -# Uncomment to enable certain features of Multi - -#$M{modules}{API} = {}; -#$M{modules}{APIDump} = {}; - -#$M{modules}{IRC} = { -# nick => 'MyVNDBBot', -# server => 'irc.synirc.net', -# channels => [ '#vndb' ], -# pass => '', -# masters => [ 'yorhel!~Ayo@your.hell' ], -#}; -- cgit v1.2.3