iwla

iwla Git Source Tree

Root/default_conf.py

1import os
2
3# Default configuration
4
5DB_ROOT = './output'
6DISPLAY_ROOT = './output'
7HOOKS_ROOT = 'plugins'
8
9PRE_HOOK_DIRECTORY = HOOKS_ROOT + '.pre_analysis'
10POST_HOOK_DIRECTORY = HOOKS_ROOT + '.post_analysis'
11DISPLAY_HOOK_DIRECTORY = HOOKS_ROOT + '.display'
12META_PATH = os.path.join(DB_ROOT, 'meta.db')
13DB_FILENAME = 'iwla.db'
14
15log_format = '$server_name:$server_port $remote_addr - $remote_user [$time_local] ' +\
16 '"$request" $status $body_bytes_sent ' +\
17 '"$http_referer" "$http_user_agent"'
18
19time_format = '%d/%b/%Y:%H:%M:%S +0100'
20
21pre_analysis_hooks = []
22post_analysis_hooks = []
23display_hooks = []
24
25pages_extensions = ['/', 'htm', 'html', 'xhtml', 'py', 'pl', 'rb', 'php']
26viewed_http_codes = [200, 304]
27
28count_hit_only_visitors = True
29
30multimedia_files = ['png', 'jpg', 'jpeg', 'gif', 'ico',
31 'css', 'js']
32
33resources_path = ['resources']
34icon_path = ['/%s/%s' % (os.path.basename(resources_path[0]), 'icon')]
35css_path = ['/%s/%s/%s' % (os.path.basename(resources_path[0]), 'css', 'iwla.css')]

Archive Download this file

Branches

Tags