From 9077516f75b8ab9bb7034f1593810021bdc92ad4 Mon Sep 17 00:00:00 2001 From: Sheppy/squarez Date: Thu, 18 May 2017 00:47:51 +0200 Subject: [PATCH] final radicale config --- radicale/config | 17 +++++++------ radicale/logging | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 8 deletions(-) create mode 100644 radicale/logging diff --git a/radicale/config b/radicale/config index e1b55f2..465d4fa 100644 --- a/radicale/config +++ b/radicale/config @@ -17,7 +17,8 @@ # For example: 0.0.0.0:9999, [::]:9999 # IPv6 adresses are configured to only allow IPv6 connections #hosts = 0.0.0.0:5232 -hosts = squarez.fauiwg.de:7000 +hosts = 0.0.0.0:7000, [::]:7000 +#hosts = 127.0.0.1:7000 # Daemon flag #daemon = False @@ -26,13 +27,13 @@ hosts = squarez.fauiwg.de:7000 #pid = # SSL flag, enable HTTPS protocol -ssl = False +ssl = True # SSL certificate path -certificate = /home/sheppy/radicale/ssl/fauiwg_radicale.cert +certificate = /home/caldav/radicale/ssl/fauiwg_radicale.cert # SSL private key -key = /home/sheppy/radicale/ssl/fauiwg_radicale.key +key = /home/caldav/radicale/ssl/fauiwg_radicale.key # SSL Protocol used. See python's ssl module for available values protocol = TLSv1.2 @@ -81,11 +82,11 @@ type = htpasswd #custom_handler = # Htpasswd filename -htpasswd_filename = ~/radicale/htpasswd_users +htpasswd_filename = /home/caldav/radicale/htpasswd_users # Htpasswd encryption method # Value: plain | sha1 | ssha | crypt | bcrypt | md5 -htpasswd_encryption = bcrypt +htpasswd_encryption = crypt # LDAP server URL, with protocol and port #ldap_url = ldap://localhost:389/ @@ -179,9 +180,9 @@ filesystem_folder = ~/radicale/collections/ # If no config is given, simple information is printed on the standard output # For more information about the syntax of the configuration file, see: # http://docs.python.org/library/logging.config.html -config = ~/radicale/logging +config = ~/.config/radicale/logging # Set the default logging level to debug -debug = True +debug = False # Store all environment variables (including those set in the shell) #full_environment = False diff --git a/radicale/logging b/radicale/logging new file mode 100644 index 0000000..bbb9211 --- /dev/null +++ b/radicale/logging @@ -0,0 +1,63 @@ +# -*- mode: conf -*- +# vim:ft=cfg + +# Logging config file for Radicale - A simple calendar server +# +# The default path for this file is /etc/radicale/logging +# This can be changed in the configuration file +# +# Other handlers are available. For more information, see: +# http://docs.python.org/library/logging.config.html + + +# Loggers, handlers and formatters keys + +[loggers] +# Loggers names, main configuration slots +keys = root + +[handlers] +# Logging handlers, defining logging output methods +keys = console,file + +[formatters] +# Logging formatters +keys = simple,full + + +# Loggers + +[logger_root] +# Root logger +level = DEBUG +handlers = file +# Enable the following instead if you also want console logging +#handlers = console,file + + +# Handlers + +[handler_console] +# Console handler +class = StreamHandler +level = DEBUG +args = (sys.stdout,) +formatter = simple + +[handler_file] +# File handler +class = FileHandler +args = ('/home/caldav/radicale/radicale.log',) +level = INFO +formatter = full + + +# Formatters + +[formatter_simple] +# Simple output format +format = %(message)s + +[formatter_full] +# Full output format +format = %(asctime)s - %(levelname)s: %(message)s