aboutsummaryrefslogtreecommitdiff
path: root/mauveserver.conf
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-04-19 09:37:53 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-04-19 09:37:53 +0100
commit326bbd320dbabc075fd7e59e55a715c7d4e9d6b9 (patch)
treeaa637e7287aa7088c31cb0b320241214059a6a7f /mauveserver.conf
parent89a67770e66d11740948e90a41db6cee0482cf8e (diff)
* added sane init script for server
* mauvesend now handles options better * jabber client has stub message receivng method
Diffstat (limited to 'mauveserver.conf')
-rw-r--r--mauveserver.conf41
1 files changed, 31 insertions, 10 deletions
diff --git a/mauveserver.conf b/mauveserver.conf
index 1000283..c17f7f7 100644
--- a/mauveserver.conf
+++ b/mauveserver.conf
@@ -7,26 +7,47 @@
server {
# persistent data store, only sqlite3 supported at the moment
database "sqlite3:///var/lib/mauvealert/alerts.db"
-
- # you probably want to listen on all addresses
- ip "0.0.0.0"
- # UDP port number
- port 32741
-
- # logging options
- log_file "/var/log/mauveserver.log"
- # 0 is debug, 1 is info, 2 is warning
- log_level 1
+ listener {
+ ip "0.0.0.0"
+ port 32741
+ }
+
# default is probably more than enough!
#transmission_id_expire_time 600
# few options for web interface, just the TCP port number
web_interface {
+ ip "0.0.0.0"
port 1288
+ document_root "/usr/share/mauvealert"
}
}
+logger {
+
+ default_format "%d [ %6.6l ] [ %12.12c ] %m"
+
+# outputter("stdout") {
+# level Log4r::DEBUG
+# }
+
+ outputter("file") {
+ filename "/var/log/mauve/mauveserver.log"
+ trunc false
+ level Log4r::DEBUG
+ }
+
+ outputter("email") {
+ server "outgoing.mx.bytemark.co.uk"
+ subject "Mauve logger output"
+ from "#{ENV['USER']}@#{Socket.gethostname}"
+ to "patrick@bytemark.co.uk"
+ domain "test.mauve.bytemark.co.uk"
+ level Log4r::WARN
+ }
+
+}
notification_method("email") {
# email address to send from