This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
/
radiobrowser-dev.toml
141 lines (131 loc) · 4.59 KB
/
radiobrowser-dev.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
## API
## ===
## Directory for static and template files
static-files-dir = "./static"
## Log file path
log-dir = "./"
## Log level 0(ERROR)-4(TRACE)
log-level = 3
## Log in JSON format
log-json = false
## Listening IP
listen-host = "127.0.0.1"
## Listening port
listen-port = 8080
## How many concurrent threads used by socket
threads = 5
## Documentation url to be used if automatic way is not working (HTTP/1.0)
server-url = "https://de1.api.radio-browser.info"
## Cache support
## =============
## cache type can be "none" or "builtin" or "redis" or "memcached"
cache-type = "none"
## redis connection string
#cache-url = "redis://localhost:6379"
## memcached connection string
#cache-url = "memcache://localhost:11211"
## Time to live for cache items
cache-ttl = "10secs"
## Database
## ========
## database connection string (mysql, mariadb)
database = "mysql://radiouser:password@localhost/radio"
## Ignore errors on database migration scripts
## ONLY use this if you know what you are doing
ignore-migration-errors = false
## Allow database to downgrade if you start an older version
## of the radio browser binary
allow-database-downgrade = false
## Prometheus exporter
## ===================
## This will enable the prometheus compatible exporter on the main listening port
## You can reach it by doing a "GET /metrics"
prometheus-exporter = true
## Prefix for all exported keys
prometheus-exporter-prefix = "radio_browser"
## Stream check
## ============
## Enable the checking of stations
enable-check = false
## Concurrent checks
concurrency = 10
## Batchsize of stations to get from the database at a time
stations = 100
## Enable delete logic for stations
delete = true
## Interval in seconds to wait after every batch of checks
pause = "60secs"
## Timeout for tcp connections
tcp-timeout = "10secs"
## Recursive depth for real stream link resolution
max-depth = 5
## Retries for each station check until marked as broken
retries = 5
## Hostname for the check-entries in the database, defaults to the local hostname
#source = "myhostname"
## Freeform location string for this server
server-location = "Datacenter 2 in coolstreet"
## 2 letter countrycode to locate this server
server-country-code = "DE"
## User agent for the stream check
#useragent = "useragent/1.0"
## Check server infos if server supports it (icecast)
server-info-check = false
## Chunksize for checking servers
server-info-check-chunksize = 100
## Check if current favicon in database still works, and remove them if not
recheck-existing-favicon = false
## Try to extract favicon from website for empty favicons
enable-extract-favicon = false
## Minimum (width or height) of favicons extracted
favicon-size-min = 32
## Maximum (width or height) of favicons extracted
favicon-size-max = 256
## Optimum size of favicons extracted
favicon-size-optimum = 128
## File path to CSV for replacing languages (local path or http/https)
#replace-language-file = "https://radiobrowser.gitlab.io/radiobrowser-static-data/language-replace.csv"
replace-language-file = "./etc/language-replace.csv"
## File path to CSV for mapping language to code (local path or http/https)
language-to-code-file = "./etc/language-to-code.csv"
## File path to CSV for replacing tags (local path or http/https)
#replace-tag-file = "https://radiobrowser.gitlab.io/radiobrowser-static-data/tag-replace.csv"
replace-tag-file = "./etc/tag-replace.csv"
## Caches
## ======
## Update caches at an interval
update-caches-interval = "5mins"
## Cleanup
## =======
## Cleanup worker startup interval
cleanup-interval = "1hour"
## The same ip cannot do clicks for the same stream in this timespan
click-valid-timeout = "1day"
## Broken streams are removed after this timespan, if they have never worked.
broken-stations-never-working-timeout = "3days"
## Broken streams are removed after this timespan.
broken-stations-timeout = "30days"
## Checks are removed after this timespan.
checks-timeout = "30days"
## Checks are removed after this timespan.
clicks-timeout = "30days"
## reload / redownload some config files
refresh-config-interval = "1day"
## Mirroring
## =========
## Mirror pull interval in seconds
mirror-pull-interval = "5mins"
## How many changes should be pulled in a chunk while pulling
chunk-size-changes = 10000
## How many checks should be pulled in a chunk while pulling
chunk-size-checks = 10000
## On values > 0 autodelete stations with same urls, order by clickcount DESC
# max-duplicates = 0
## Mirror from server
[pullservers]
#[pullservers.alpha]
#host = "http://nl1.api.radio-browser.info"
#[pullservers.beta]
#host = "http://de1.api.radio-browser.info"
#[pullservers.gamma]
#host = "http://at1.api.radio-browser.info"