iwla/conf.py

65 lines
1.9 KiB
Python
Raw Normal View History

2014-11-20 15:25:43 +01:00
2014-12-08 18:38:40 +01:00
# Web server log
2015-07-08 08:20:22 +02:00
analyzed_filename = '/var/log/apache2/access.log.1,/var/log/apache2/access.log'
2014-11-20 15:25:43 +01:00
2014-12-08 18:38:40 +01:00
# Domain name to analyze
2014-11-26 16:17:16 +01:00
domain_name = 'soutade.fr'
2014-12-08 18:38:40 +01:00
# Display visitor IP in addition to resolved names
2015-02-19 20:23:13 +01:00
display_visitor_ip = True
2014-11-26 16:17:16 +01:00
2014-12-08 18:38:40 +01:00
# Hooks used
2014-11-25 16:22:07 +01:00
pre_analysis_hooks = ['page_to_hit', 'robots']
2016-02-06 14:45:09 +01:00
post_analysis_hooks = ['referers', 'top_pages', 'top_downloads', 'operating_systems', 'browsers', 'feeds', 'hours_stats', 'reverse_dns', 'ip_to_geo']
2021-06-03 08:58:47 +02:00
display_hooks = ['filter_users', 'top_visitors', 'all_visits', 'referers', 'top_pages', 'top_downloads', 'referers_diff', 'ip_to_geo', 'operating_systems', 'browsers', 'feeds', 'hours_stats', 'top_downloads_diff', 'robot_bandwidth', 'top_pages_diff']
2014-11-21 10:41:29 +01:00
2014-12-08 18:38:40 +01:00
# Reverse DNS timeout
2014-11-24 21:37:37 +01:00
reverse_dns_timeout = 0.2
2014-12-08 18:38:40 +01:00
# Count this addresses as hit
2015-07-08 08:20:22 +02:00
page_to_hit_conf = [r'^.+/logo[/]?$']
2014-12-08 18:38:40 +01:00
# Count this addresses as page
2015-04-08 14:06:03 +02:00
hit_to_page_conf = [r'^.+/category/.+$', r'^.+/tag/.+$', r'^.+/archive/.+$', r'^.+/ljdc[/]?$', r'^.+/source/tree/.*$', r'^.+/source/file/.*$', r'^.+/search/.+$']
# Because it's too long to build HTML when there is too much entries
max_hits_displayed = 100
max_downloads_displayed = 100
2014-12-15 21:28:25 +01:00
2020-05-01 09:55:42 +02:00
# Compressed files
2017-01-29 09:32:09 +01:00
compress_output_files = ['html', 'css', 'js']
2014-12-17 19:00:42 +01:00
2017-01-29 09:32:09 +01:00
# Locale in French
2015-07-08 08:20:22 +02:00
#locale = 'fr'
2014-12-18 19:54:31 +01:00
2015-02-19 20:23:13 +01:00
# Tracked IP
2015-07-08 08:20:22 +02:00
tracked_ip = ['192.168.1.1']
2015-02-19 20:23:13 +01:00
2021-06-03 08:58:47 +02:00
# Filtered IP
filtered_ip = [
# r'192.168.*', # Local
]
filtered_users = [
# [['country_code', '=', 'cn'], ['viewed_pages', '>=', '100']],
]
2020-04-09 09:36:32 +02:00
# Excluded IP
excluded_ip = [
2021-06-03 08:58:47 +02:00
r'192.168.*', # Local
r'117.78.58.*', # China ecs-117-78-58-25.compute.hwclouds-dns.com
2020-04-09 09:36:32 +02:00
]
# Feeds url
2021-06-03 08:58:47 +02:00
feeds = [r'/atom.xml', r'/rss.xml']
# Feeds referers url
feeds_referers = ['https://feedly.com']
2015-02-19 20:23:13 +01:00
2017-01-29 09:32:09 +01:00
# Consider xml files as multimedia (append to current list)
2020-05-01 09:55:42 +02:00
multimedia_files_append = ['xml']
# Don't count visitors that only do one hit (for a picture, ...)
count_hit_only_visitors = False
2017-01-29 09:32:09 +01:00
# Not all robots bandwidth (too big)
create_all_robot_bandwidth_page = False