|
1 | 1 | base_url = "http://localhost:9042" # The base URL of the Liwan instance |
2 | 2 | listen = 9042 # The port to listen on (http) |
3 | 3 |
|
4 | | -# # Disable favicon fetching from the DuckDuckGo API. |
5 | | -# disable_favicons=false |
| 4 | +## Disable favicon fetching from the DuckDuckGo API. |
| 5 | +# disable_favicons = false |
6 | 6 |
|
7 | | -# # Folder to store the database in (Will be created if it doesn't exist) |
8 | | -# # defaults to $HOME/.local/share/liwan/data on linux/macos |
9 | | -# # defaults to ./liwan-data on other platforms |
| 7 | +## Folder to store the database in (Will be created if it doesn't exist) |
| 8 | +## defaults to $HOME/.local/share/liwan/data on linux/macos |
| 9 | +## defaults to ./liwan-data on other platforms |
10 | 10 | # data_dir="./liwan-data" |
11 | 11 |
|
12 | | -# # Trusted client IP headers (used in order). |
13 | | -# # Empty by default, meaning only the direct peer IP is used. |
14 | | -# # Presets: cloudflare, fastly, fly, cloudfront, akamai. |
15 | | -# client_ip_headers="cloudflare" |
16 | | -# # Provider presets can be combined with standard or custom headers. |
17 | | -# client_ip_headers=["cloudflare", "fly", "X-Forwarded-For", "X-Client-IP"] |
| 12 | +## Trusted client IP headers (used in order), defaults to X-Forwarded-For. |
| 13 | +## Presets: cloudflare, fastly, fly, cloudfront, akamai. |
| 14 | +## Provider presets can be combined with standard or custom headers. |
| 15 | +client_ip_headers = ["X-Forwarded-For"] |
18 | 16 |
|
19 | | -# # Trusted reverse proxies (IP or CIDR). |
20 | | -# # Empty by default, meaning forwarded client IP and GeoIP headers are not trusted. |
21 | | -# trusted_proxies=["127.0.0.1", "10.0.0.0/8"] |
| 17 | +## Trusted reverse proxies (IP or CIDR), defaults to the IPv4 and IPv6 loopback ranges. |
| 18 | +trusted_proxies = ["127.0.0.1/8", "::1/128"] |
22 | 19 |
|
23 | | -# # Hour of day, in the server's local timezone, when visitor grouping salts rotate. |
24 | | -# # Defaults to 4, meaning 4am local time. |
| 20 | +## Hour of day, in the server's local timezone, when visitor grouping salts rotate. |
| 21 | +## Defaults to 4, meaning 4am local time. |
25 | 22 | # visitor_group_rotation_hour=4 |
26 | 23 |
|
27 | | -# GeoIp settings (Optional) |
28 | | -[geoip] |
29 | | -# # Read location data supplied by a trusted proxy. |
30 | | -# # Presets: akamai, cloudflare, cloudfront, netlify, vercel. |
31 | | -# headers="cloudflare" |
32 | | -# # Multiple presets and custom mappings are also supported, in priority order. |
33 | | -# headers=["cloudflare", { country="X-Country", city="X-City" }] |
34 | | - |
35 | | -# # MaxMind account ID and license key |
36 | | -# # Required to automatically download the database and keep it up to date |
| 24 | +[geoip] # GeoIp settings (Optional) |
| 25 | +## MaxMind account ID and license key |
| 26 | +## Required to automatically download the database and keep it up to date |
37 | 27 | # maxmind_account_id="MY_ACCOUNT_ID" |
38 | 28 | # maxmind_license_key="MY_LICENSE_KEY" |
39 | 29 | # maxmind_edition="GeoLite2-City" |
40 | 30 |
|
41 | | -# # If you don't want to automatically download the database, you can specify a path to a local file |
42 | | -# # Otherwise, the database will be downloaded automatically and stored in the data_dir |
| 31 | +## If you don't want to automatically download the database, you can specify a path to a local file |
| 32 | +## Otherwise, the database will be downloaded automatically and stored in the data_dir |
43 | 33 | # maxmind_db_path="./GeoLite2-City.mmdb" |
44 | 34 |
|
45 | | -# Database settings |
46 | | -[duckdb] |
47 | | -# # See https://liwan.dev/guides/duckdb for guidance |
| 35 | +## Read location data supplied by a trusted proxy. |
| 36 | +## Presets: akamai, cloudflare, cloudfront, netlify, vercel. |
| 37 | +## Multiple presets and custom mappings are also supported, in priority order: |
| 38 | +# headers=["cloudflare", { country="X-Country", city="X-City" }] |
| 39 | +# headers="cloudflare" |
| 40 | + |
| 41 | +[duckdb] # Database settings |
| 42 | +## See https://liwan.dev/guides/duckdb for guidance |
48 | 43 | # threads=2 |
49 | 44 | # memory_limit=2G |
50 | 45 |
|
51 | | -# Resource limits for dashboard reports. |
52 | | -[limits] |
| 46 | +[limits] # Resource limits for dashboard reports. |
53 | 47 | # report_timeout_seconds=30 |
54 | 48 | # report_max_concurrency=8 |
55 | 49 | # report_max_range_days=3660 |
|
0 commit comments