X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/27efe8955d1b72ef220e76d85351fe8c5aefd72c..180b8ec1d4d2b3d4e930f57b9850348159510b27:/config.php.sample diff --git a/config.php.sample b/config.php.sample index 0095a38..6726eb8 100644 --- a/config.php.sample +++ b/config.php.sample @@ -6,7 +6,7 @@ */ if (!defined('UPATH')) - die("Access denied"); + die("Access denied"); /** * The base URL, how this panel can be accessed. @@ -14,7 +14,7 @@ * or something like '/webpanel/' if you go to http://x.y.z/webpanel * IMPORTANT: needs a trailing slash! */ -define( 'BASE_URL', '/' ); +define( 'BASE_URL', '/unrealircd-webpanel/' ); /** * The RPC User name as defined in your unrealircd.conf @@ -47,16 +47,74 @@ define( 'UNREALIRCD_SSL_VERIFY', false ); */ define( 'UNREALIRCD_DEBUG', false ); - /** * Your list of plugins: */ define( - 'PLUGINS', [ + 'PLUGINS', [ - /* This is where you should type the name(s) of your plugins. - * Uncomment the following line to view the live example - */ - //"example_plugin", - ] + /* This is where you should type the name(s) of your plugins. + * Uncomment the following line to view the live example + */ + //"example_plugin", /* An example plugin */ + //"sql_auth", /* Provides a login page which uses SQL */ + ] ); + + +/** + * If you wish to use the SQL user authentication system "sql_auth", + * you'll need to specify your SQL information below. + */ + + /** + * SQL IP address or hostname + * You may specify a unix domain socket directory address + * E.g: + * define('SQL_IP', "/path/to/unix/domain/socket"); + * + * Path to unix socket MUST start with a slash "/" + */ +define('SQL_IP', "127.0.0.1"); + +/** + * SQL Dabase name + */ +define('SQL_DATABASE', "unrealircd"); +/** + * SQL Username + */ +define('SQL_USERNAME', "unrealircd"); + +/** + * SQL Password + */ +define('SQL_PASSWORD', "replace_this_with_your_sql_password"); + +/** + * SQL Table prefix + * You should only need to change this if you have already have one + * or more instances of webpanel on the same database + */ +define('SQL_PREFIX', "unreal_"); + + +/** + * The default user for the plugin "SQL_Auth". As soon as you load + * the plugin, the user defined below will be created. It suggested + * that you remove it after you've logged in successfully. + */ +define('SQL_DEFAULT_USER', [ + "username" => "default", + "password" => "testing" +]); + +/** + * Also part of the SQL_Auth plugin. This protects your login page. + * This is a list of DNS Blacklists that get checked for non-logged-in + * users. +*/ +define('DNSBL', [ + "dnsbl.dronebl.org", + "rbl.efnetrbl.org" +]);