iwla

iwla Git Source Tree

Root/default_conf.py

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

Archive Download this file

Branches

Tags