summaryrefslogtreecommitdiff
path: root/data/config_example.pl
blob: 52482ad8193b19a2a92b37b28eb1d0db9d267b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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    => '<some unique string>',
  scrypt_salt  => '<another unique string>',
  # 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    => '<nickserv-password>',
#  masters => [ 'yorhel!~Ayo@your.hell' ],
#};


# Uncomment the compression method to use for the generated Javascript (or just leave as-is to disable compression)
#$JSGEN{compress} = 'JavaScript::Minifier::XS';
#$JSGEN{compress} = "|/usr/bin/uglifyjs --compress --mangle";

# Uncomment to create pre-compressed css and js files using zopfli
#$JSGEN{gzip} = $SKINGEN{gzip} = "/usr/bin/zopfli";

# Uncomment to generate an extra small icons.png
# (note: using zopflipng or pngcrush with the slow option is *really* slow, but compresses awesomely)
#$SPRITEGEN{crush} = '/usr/bin/pngcrush -q';
#$SPRITEGEN{crush} = '/usr/bin/zopflipng -m --lossy_transparent';
#$SPRITEGEN{slow} = 1;