summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-01 18:54:51 -0400
committerAdam <Adam@anope.org>2012-09-01 18:54:51 -0400
commite3d5140dcc936ff411c438b7e3997104cb5f085a (patch)
tree49d7ee0b3e531a1c81e35fb10f25e6340fa781ba /data
parentf81d0113a21187d68c5fa0f1262e5514465b1953 (diff)
Added a web panel module + a default template
Diffstat (limited to 'data')
-rw-r--r--data/modules.example.conf55
1 files changed, 55 insertions, 0 deletions
diff --git a/data/modules.example.conf b/data/modules.example.conf
index 2a06b1a99..d4d86c0ba 100644
--- a/data/modules.example.conf
+++ b/data/modules.example.conf
@@ -92,6 +92,38 @@ m_helpchan
}
/*
+ * m_httpd
+ *
+ * Allows services to serve web pages. By itself, this module does nothing useful.
+ *
+ * Note that using this will allow users to get the IP of your services.
+ * To prevent this we recommend using a reverse proxy or a tunnel.
+ */
+#module { name = "m_httpd" }
+httpd
+{
+ /* Name of this service */
+ name = "httpd/main"
+
+ /* IP to listen on */
+ ip = "0.0.0.0"
+ /* Port to listen on */
+ port = 8080
+ /* Time before connections to this server are timed out */
+ timeout = 30
+
+ /* If you are using a reverse proxy that sends one of the
+ * extforward_headers set below, set this to its IP.
+ * This allows services to obtain the real IP of users by
+ * reading the forwarded-for HTTP header.
+ */
+ #extforward_ip = "192.168.0.255"
+
+ /* The header to look for. These probably work as is. */
+ extforward_header = "X-Forwarded-For Forwarded-For"
+}
+
+/*
* m_ldap
*
* This module allows other modules to use LDAP. By itself, this module does nothing useful.
@@ -440,3 +472,26 @@ ns_maxemail
#maxemails = 1
}
+/*
+ * webcpanel
+ *
+ * This module creates a web configuration panel that allows users and operators to perform any task
+ * as they could over IRC. If you are using the default configuration you should be able to access
+ * this panel by visiting http://127.0.0.1:8080 in your web browser from the machine Anope is running on.
+ *
+ * This module requires m_httpd.
+ */
+#module { name = "webcpanel" }
+webcpanel
+{
+ /* Web server to use */
+ server = "httpd/main";
+
+ /* Template to use */
+ template = "default";
+
+ /* Page title */
+ title = "Anope IRC Services";
+}
+
+