]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - config/config.php.sample
Move to new style config, with config in config/ directory.
[irc/unrealircd/unrealircd-webpanel.git] / config / config.php.sample
CommitLineData
26971737
VP
1<?php
2
3/**
4 * The configuration file for your admin panel.
5 *
6 */
7
ea90b321 8if (!defined('UPATH'))
6257bda1 9 die("Access denied");
26971737 10
27efe895
BM
11/**
12 * The base URL, how this panel can be accessed.
13 * This would be '/' if you installed in the web root,
14 * or something like '/webpanel/' if you go to http://x.y.z/webpanel
15 * IMPORTANT: needs a trailing slash!
16*/
ea90b321 17$config["base_url"] = '/unrealircd-webpanel/';
26971737
VP
18
19/**
20 * The RPC User name as defined in your unrealircd.conf
f22f79e0 21 * https://www.unrealircd.org/docs/UnrealIRCd_webpanel#Configuring_UnrealIRCd
26971737 22*/
ea90b321 23$config["unrealircd"]["rpc_user"] = 'adminpanel';
26971737
VP
24
25/**
26 * The RPC User password as defined in your unrealircd.conf
27*/
ea90b321 28$config["unrealircd"]["rpc_password"] = 'securepassword';
26971737
VP
29
30/**
31 * The host IP or name of your RPC server
32*/
ea90b321 33$config["unrealircd"]["host"] = '127.0.0.1';
26971737
VP
34
35/**
36 * The port of your RPC server as defined in your unrealircd.conf
37*/
ea90b321 38$config["unrealircd"]["port"] = '8600';
26971737
VP
39
40/**
0b163f47 41 * You should set this to true, if your RPC server is not on your local host
26971737 42*/
ea90b321 43$config["unrealircd"]["tls_verify_cert"] = false;
26971737
VP
44
45/**
0b163f47 46 * You should only need this, if you're developing something.
26971737 47*/
ea90b321 48$config["debug"] = false;
90dc8f2b 49
b65f4469
VP
50/**
51 * Your list of plugins:
52 */
53define(
ea90b321 54 'get_config("plugins")', [
6257bda1
VP
55
56 /* This is where you should type the name(s) of your plugins.
57 * Uncomment the following line to view the live example
58 */
59 //"example_plugin", /* An example plugin */
60 //"sql_auth", /* Provides a login page which uses SQL */
c44f6efa 61 //"php_mailer", /* Provides ability to send emails on behalf of the admin panel */
6257bda1 62 ]
b65f4469
VP
63);
64
90dc8f2b 65
5d8e394e 66/**
b65f4469 67 * If you wish to use the SQL user authentication system "sql_auth",
5d8e394e
VP
68 * you'll need to specify your SQL information below.
69 */
70
71 /**
72 * SQL IP address or hostname
2db8e178
VP
73 * You may specify a unix domain socket directory address
74 * E.g:
ea90b321 75 * define('get_config("mysql::host")', "/path/to/unix/domain/socket");
2db8e178
VP
76 *
77 * Path to unix socket MUST start with a slash "/"
5d8e394e 78 */
ea90b321 79//$config["mysql"]["host"] = "127.0.0.1";
5d8e394e
VP
80
81/**
82 * SQL Dabase name
83 */
ea90b321
BM
84//$config["mysql"]["database"] = "unrealircdwebpanel";
85
5d8e394e
VP
86/**
87 * SQL Username
88 */
ea90b321 89//$config["mysql"]["username"] = "unrealircdwebpanel";
5d8e394e
VP
90
91/**
92 * SQL Password
93 */
ea90b321 94//$config["mysql"]["password"] = "replace_this_with_your_sql_password";
5d8e394e
VP
95
96/**
97 * SQL Table prefix
98 * You should only need to change this if you have already have one
99 * or more instances of webpanel on the same database
100 */
ea90b321 101//$config["mysql"]["table_prefix"] = "unreal_";
5d8e394e
VP
102
103
75e5eb62
VP
104/**
105 * The default user for the plugin "SQL_Auth". As soon as you load
106 * the plugin, the user defined below will be created. It suggested
107 * that you remove it after you've logged in successfully.
108 */
ea90b321
BM
109//define('SQL_DEFAULT_USER', [
110// "username" => "default",
111// "password" => "testing"
112//]);
ce9cf366
VP
113
114/**
115 * Also part of the SQL_Auth plugin. This protects your login page.
116 * This is a list of DNS Blacklists that get checked for non-logged-in
117 * users.
118*/
119define('DNSBL', [
6257bda1 120 "dnsbl.dronebl.org",
ce9cf366
VP
121 "rbl.efnetrbl.org"
122]);
c44f6efa
VP
123
124/** Your email settings
125 * Requires plugin "php_mailer"
126*/
127define('EMAIL_SETTINGS', [
128 "host" => 'smtp.host.example.com',
129 "port" => 587,
811bbe29 130 "encryption" => 'tls', /* Use 'tls' for STARTTLS or 'ssl' for TLS/SSL */
6247fb88 131 "username" => "youremail@example.com", /* The email to login with and send emails from */
c44f6efa
VP
132 "password" => "supersecretpassword", /* The password for the above email */
133 "from_name" => "UnrealIRCd Admin Panel",
134
9307cc64 135]);