iwla

iwla Git Source Tree

Root/default_conf.py

1import os
2
3# Default configuration
4
5# Default directory where to store database information
6DB_ROOT = './output'
7# Default directory where to create html files
8DISPLAY_ROOT = './output'
9
10# Hooks directories (don't edit)
11HOOKS_ROOT = 'plugins'
12PRE_HOOK_DIRECTORY = HOOKS_ROOT + '.pre_analysis'
13POST_HOOK_DIRECTORY = HOOKS_ROOT + '.post_analysis'
14DISPLAY_HOOK_DIRECTORY = HOOKS_ROOT + '.display'
15# Meta Database filename
16META_PATH = os.path.join(DB_ROOT, 'meta.db')
17# Database filename per month
18DB_FILENAME = 'iwla.db'
19
20# Web server log format (nginx style). Default is what apache log
21log_format = '$server_name:$server_port $remote_addr - $remote_user [$time_local] ' +\
22 '"$request" $status $body_bytes_sent ' +\
23 '"$http_referer" "$http_user_agent"'
24
25# Time format used in log format
26# TOFIX UTC
27time_format = '%d/%b/%Y:%H:%M:%S +0100'
28
29# Hooks that are loaded at runtime (only set names without path and extensions)
30pre_analysis_hooks = []
31post_analysis_hooks = []
32display_hooks = []
33
34# Extensions that are considered as a HTML page (or result)
35pages_extensions = ['/', 'htm', 'html', 'xhtml', 'py', 'pl', 'rb', 'php']
36# HTTP codes that are cosidered OK
37viewed_http_codes = [200, 304]
38
39# If False, doesn't cout visitors that doesn't GET a page but resources only (images, rss...)
40count_hit_only_visitors = True
41
42# Multimedia extensions (not accounted as downloaded files)
43multimedia_files = ['png', 'jpg', 'jpeg', 'gif', 'ico',
44 'css', 'js']
45
46# Default resources path (will be symlinked in DISPLAY_OUTPUT)
47resources_path = ['resources']
48# Icon path
49icon_path = '%s/%s' % (os.path.basename(resources_path[0]), 'icon')
50# CSS path (you can add yours)
51css_path = ['%s/%s/%s' % (os.path.basename(resources_path[0]), 'css', 'iwla.css')]

Archive Download this file

Branches

Tags