]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - config.php.sample
give success/error messages on edit panel user
[irc/unrealircd/unrealircd-webpanel.git] / config.php.sample
CommitLineData
26971737
VP
1<?php
2
3/**
4 * The configuration file for your admin panel.
5 *
6 */
7
26971737 8 if (!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*/
240831b5 17define( 'BASE_URL', '/unrealircd-webpanel/' );
26971737
VP
18
19/**
20 * The RPC User name as defined in your unrealircd.conf
0b163f47 21 * Guide / Documentation: https://www.unrealircd.org/docs/JSON-RPC
26971737
VP
22*/
23define( 'UNREALIRCD_RPC_USER', 'apiuser' );
24
25/**
26 * The RPC User password as defined in your unrealircd.conf
27*/
28define( 'UNREALIRCD_RPC_PASSWORD', 'securepassword' );
29
30/**
31 * The host IP or name of your RPC server
32*/
33define( 'UNREALIRCD_HOST', '127.0.0.1' );
34
35/**
36 * The port of your RPC server as defined in your unrealircd.conf
37*/
4a8688f9 38define( '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
VP
42*/
43define( 'UNREALIRCD_SSL_VERIFY', false );
44
45/**
0b163f47 46 * You should only need this, if you're developing something.
26971737 47*/
90dc8f2b
VP
48define( 'UNREALIRCD_DEBUG', false );
49
b65f4469
VP
50/**
51 * Your list of plugins:
52 */
53define(
6257bda1
VP
54 'PLUGINS', [
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:
75 * define('SQL_IP', "/path/to/unix/domain/socket");
76 *
77 * Path to unix socket MUST start with a slash "/"
5d8e394e
VP
78 */
79define('SQL_IP', "127.0.0.1");
80
81/**
82 * SQL Dabase name
83 */
b2ae16ab 84define('SQL_DATABASE', "unrealircdwebpanel");
5d8e394e
VP
85/**
86 * SQL Username
87 */
b2ae16ab 88define('SQL_USERNAME', "unrealircdwebpanel");
5d8e394e
VP
89
90/**
91 * SQL Password
92 */
93define('SQL_PASSWORD', "replace_this_with_your_sql_password");
94
95/**
96 * SQL Table prefix
97 * You should only need to change this if you have already have one
98 * or more instances of webpanel on the same database
99 */
100define('SQL_PREFIX', "unreal_");
101
102
75e5eb62
VP
103/**
104 * The default user for the plugin "SQL_Auth". As soon as you load
105 * the plugin, the user defined below will be created. It suggested
106 * that you remove it after you've logged in successfully.
107 */
108define('SQL_DEFAULT_USER', [
6257bda1
VP
109 "username" => "default",
110 "password" => "testing"
75e5eb62 111]);
ce9cf366
VP
112
113/**
114 * Also part of the SQL_Auth plugin. This protects your login page.
115 * This is a list of DNS Blacklists that get checked for non-logged-in
116 * users.
117*/
118define('DNSBL', [
6257bda1 119 "dnsbl.dronebl.org",
ce9cf366
VP
120 "rbl.efnetrbl.org"
121]);
c44f6efa
VP
122
123/** Your email settings
124 * Requires plugin "php_mailer"
125*/
126define('EMAIL_SETTINGS', [
127 "host" => 'smtp.host.example.com',
128 "port" => 587,
811bbe29 129 "encryption" => 'tls', /* Use 'tls' for STARTTLS or 'ssl' for TLS/SSL */
6247fb88 130 "username" => "youremail@example.com", /* The email to login with and send emails from */
c44f6efa
VP
131 "password" => "supersecretpassword", /* The password for the above email */
132 "from_name" => "UnrealIRCd Admin Panel",
133
9307cc64 134]);