4a0d9b3276de601db6cd07fac137bb9b751a1d46
[kivitendo-erp.git] / config / lx_office.conf.default
1 [paths]
2 # path to temporary files (must be writeable by the web server)
3 userspath = users
4 # spool directory for batch printing
5 spool = spool
6 # templates base directory
7 templates = templates
8 # Path to the old memberfile (ignored on new installations)
9 memberfile = users/members
10
11 [task_server]
12 # User name to use for database access
13 login = mb
14 # Set to 1 for debug messages in /tmp/lx-office-debug.log
15 debug = 1
16 # Chose a system user the daemon should run under when started as root.
17 run_as =
18
19 [periodic_invoices]
20 # The user name a report about the posted and printed invoices is sent
21 # to.
22 send_email_to  = mb
23 # The "From:" header for said email.
24 email_from     = Lx-Office Daemon <root@localhost>
25 # The subject for said email.
26 email_subject  = Benachrichtigung: automatisch erstellte Rechnungen
27 # The template file used for the email's body.
28 email_template = templates/webpages/oe/periodic_invoices_email.txt
29
30 [Console]
31 # autologin to use if none is given
32 login = mb
33
34 # autorun lines will be executed after autologin.
35 # be warned that loading huge libraries will noticably lengthen startup time.
36 autorun = require "bin/mozilla/common.pl";
37         = use English qw(-no_match_vars);
38         = use List::Util qw(min max);
39         = use Sort::Naturally;
40         = my ($a, $b, $e, $f, @a1, @a2, %h);
41         = sub take { my $max = shift; my $r = ref($_[0]) eq 'ARRAY' ? $_[0] : \@_; return @{$r}[0..List::Util::min($max, scalar(@{$r})) - 1]; }
42
43 # location of history file for permanent history
44 history_file = users/console_history
45
46 [debug]
47 # Use DBIx::Log4perl for logging DBI calls. The string LXDEBUGFILE
48 # will be replaced by the file name configured for $::lxdebug.
49 dbix_log4perl = 0
50 dbix_log4perl_config = log4perl.logger = FATAL, LOGFILE
51                      = log4perl.appender.LOGFILE=Log::Log4perl::Appender::File
52                      = log4perl.appender.LOGFILE.filename=LXDEBUGFILE
53                      = log4perl.appender.LOGFILE.mode=append
54                      = log4perl.appender.LOGFILE.Threshold = ERROR
55                      = log4perl.appender.LOGFILE.layout=PatternLayout
56                      = log4perl.appender.LOGFILE.layout.ConversionPattern=[%r] %F %L %c - %m%n
57                      = log4perl.logger.DBIx.Log4perl=DEBUG, A1
58                      = log4perl.appender.A1=Log::Log4perl::Appender::File
59                      = log4perl.appender.A1.filename=LXDEBUGFILE
60                      = log4perl.appender.A1.mode=append
61                      = log4perl.appender.A1.layout=Log::Log4perl::Layout::PatternLayout
62                      = log4perl.appender.A1.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n
63
64 # Activate certain global debug messages. If you want to combine
65 # several options then list them seperated by spaces.
66 #
67 # Possible values include:
68 #   NONE   - no debug output (default)
69 #   INFO
70 #   DEBUG1
71 #   DEBUG2
72 #   QUERY              - Dump SQL queries (only in legacy code; see also "dbix_log4perl" above)
73 #   TRACE              - Track function calls and returns
74 #   BACKTRACE_ON_ERROR - Print a function call backtrace when $form->error() is called
75 #   REQUEST_TIMER      - Log timing of HTTP requests
76 #   WARN               - warnings
77 #   ALL                - all possible debug messages
78 #
79 #   DEVEL              - sames as "INFO QUERY TRACE BACKTRACE_ON_ERROR REQUEST_TIMER"
80 #
81 # Example:
82 #   global_level = TRACE QUERY
83 global_level = NONE
84
85 # Activate monitoring of the content of $form. If it is active then
86 # monitoring can be turned on for certain variables with the
87 # following:
88 #   $form->{"Watchdog::<variable>"} = 1;
89 # Monitoring has a performance cost and is therefore deactivated by
90 # default.
91 watch_form = 0
92
93 # If you want to debug the creation of LaTeX files then set this to 1.
94 # That way the temporary LaTeX files created during PDF creation are
95 # not removed and remain in the "users" directory.
96 keep_temp_files = 0
97
98 # The file name where the debug messages are written to.
99 file_name = /tmp/lx-office-debug.log