regina/default.conf

125 lines
5.0 KiB
Plaintext
Raw Normal View History

2022-12-14 14:55:04 +01:00
# ************************************* REGINA CONFIGURATION **************************************
# .__
# _______ ____ ____ |__| ____ _____
# \_ __ \_/ __ \ / ___\| |/ \\__ \
# | | \/\ ___// /_/ > | | \/ __ \_
# |__| \___ >___ /|__|___| (____ /
# \/_____/ \/ \/
# *************************************************************************************************
# File format:
# Assign value
# key = value
# Lists
# key = el1, el2, el3
2022-12-14 19:15:43 +01:00
# Dictionaries:
# key1: val1, key2: val2
# key1: el1-1,el1-2; key2: el2-1, el2-2
2022-12-14 14:55:04 +01:00
# - do not use quotation marks (unless your literally want one)
# - leading and trailing whitespaces will be ignored
# ******************************************* GENERAL *********************************************
2022-12-14 19:15:43 +01:00
# path to the database
# eg: /home/my_visitor/analytics/my_website.db
2022-12-14 14:55:04 +01:00
db =
2022-11-27 22:27:57 +01:00
2022-12-14 14:55:04 +01:00
# **************************************** DATA COLLECTION ****************************************
2022-11-27 22:27:57 +01:00
# these changes will only apply to newly collected data/creation of new database
2022-12-14 14:55:04 +01:00
# *************************************************************************************************
2022-12-14 19:15:43 +01:00
# path to the nginx access log to parse. Make sure you have write permissions!
# eg: /var/log/nginx/access.log
2022-12-14 14:55:04 +01:00
access_log =
2022-11-28 01:01:06 +01:00
2022-12-14 19:15:43 +01:00
# FILE GROUPING
2022-11-27 22:27:57 +01:00
# nginx locations and their root directory: location:directory,location:directory,...
2022-12-14 19:15:43 +01:00
# eg: /:/www/my_website,/error:/www/error
locs_and_dirs =
2022-11-27 22:27:57 +01:00
# filetypes that should be grouped (comma separated)
2022-12-14 19:15:43 +01:00
# eg: png,jpg,jpeg,gif,svg,css,ico,pdf,txt
auto_group_filetypes =
2022-11-28 01:01:06 +01:00
# group certain files
2022-12-14 19:15:43 +01:00
# eg: home:index.html,home.html;images:image1.png,image2.png
filegroups =
2022-11-28 01:01:06 +01:00
2022-12-14 19:15:43 +01:00
# HUMAN DETECTION
2022-11-27 22:27:57 +01:00
# wether a request with 30x http status counts as success
status_300_is_success = False
2022-12-14 19:15:43 +01:00
# if False, unique visitor is (ip-address - visitor agent) pair, if True only ip addess
unique_visitor_is_ip_address = False
# wether a visitor needs to make at least 1 successful request to be a human
2022-12-14 14:55:04 +01:00
human_needs_success = True
2022-11-28 01:01:06 +01:00
2022-12-14 14:55:04 +01:00
# dont collect requests to locations fully match this
2022-12-14 19:15:43 +01:00
# eg: /analytics.*
request_location_regex_blacklist =
2022-11-23 16:59:13 +01:00
2022-12-14 19:15:43 +01:00
# GEOIP
get_visitor_location = False
# this option is relevant used when --update-geoip is used
2022-12-14 14:55:04 +01:00
# list if capitalized ISO 3166-1 alpha-2 country codes for which the ip address ranges need to be collected at city level, not country level
# eg for EU: AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GZ, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE
get_cities_for_countries =
2022-11-28 23:29:32 +01:00
2022-12-14 14:55:04 +01:00
# ***************************************** VISUALIZATION *****************************************
2022-12-14 19:15:43 +01:00
# these changes can be changed at any point in time as they only affect the visualization of the data
2022-12-14 14:55:04 +01:00
# *************************************************************************************************
# will be available as variable for the the generated website as %server_name
2022-12-14 19:15:43 +01:00
server_name =
2022-11-28 23:29:32 +01:00
2022-12-14 19:15:43 +01:00
# separate visitors into all and humans
2022-11-27 22:27:57 +01:00
get_human_percentage = True
2022-12-14 14:55:04 +01:00
2022-12-14 19:15:43 +01:00
# GEOIP
2022-12-14 14:55:04 +01:00
# generate a country and city ranking
do_geoip_rankings = False
# only use humans for geoip rankings
geoip_only_humans = True
2022-12-14 19:15:43 +01:00
# eg exclude unknown cities: City in .*
2022-12-14 14:55:04 +01:00
city_ranking_regex_blacklist = City in .*
country_ranking_regex_blacklist =
2022-11-28 01:01:06 +01:00
# ignore the protocol in referers, so https://url.com = http://url.com -> url.com
referer_ranking_ignore_protocol = True
# ignore the subdomains in referers, so foo.url.com = bar.url.com -> url.com
referer_ranking_ignore_subdomain = False
# ignore the location in referers, so url.com/foo = url.com/bar -> url.com
referer_ranking_ignore_location = True
2022-11-27 22:27:57 +01:00
# regex expression as whitelist for referer ranking, minus means empty
2022-12-14 19:15:43 +01:00
# eg exclude empty referers: ^[^\-].*
2022-11-23 16:59:13 +01:00
referer_ranking_regex_whitelist = ^[^\-].*
2022-11-28 01:01:06 +01:00
2022-12-14 19:15:43 +01:00
# regex expression as whitelist for visitor agent ranking
visitor_agent_ranking_regex_whitelist =
2022-11-28 01:01:06 +01:00
2022-12-14 14:55:04 +01:00
# regex expression as whitelist for file ranking
# eg .*\.((txt)|(html)|(css)|(php)|(png)|(jpeg)|(jpg)|(svg)|(gif)) to only show these files
2022-11-28 01:01:06 +01:00
file_ranking_regex_whitelist =
2022-11-27 22:27:57 +01:00
# maximum number of file(group)s on the file ranking
file_ranking_plot_max_files = 20
# wether to ignore non existing files in the ranking
file_ranking_ignore_error_files = True
2022-11-23 16:59:13 +01:00
plot_dpi = 300
2022-12-14 19:15:43 +01:00
# affects visitor/request count plot, geoip rankings, file ranking and referer ranking
2022-12-14 14:55:04 +01:00
plot_size_broad = 10, 6
# affects platform and browser ranking
plot_size_narrow = 7, 5
2022-11-28 01:01:06 +01:00
2022-11-27 22:27:57 +01:00
# output directory for the generated plots
2022-12-14 19:15:43 +01:00
# eg: /www/analytics/images
img_dir =
2022-11-27 22:27:57 +01:00
# nginx location for the generated images, its root must be img_dir
2022-12-14 19:15:43 +01:00
# eg: images
img_location =
2022-11-27 22:27:57 +01:00
# template html input
2022-12-14 19:15:43 +01:00
# eg: /home/my_visitor/.regina/template.html
template_html =
2022-11-27 22:27:57 +01:00
# output for the generated html
2022-12-14 19:15:43 +01:00
# eg: /www/analytics/statistics.html
html_out_path =
2022-12-14 14:55:04 +01:00
# ******************************************** REGINA *********************************************
# these settings affect the behavior of regina
# *************************************************************************************************
# print lots! of debug messages to help you find problems
debug = False