feat(config): Detect unexpected config items from config files.

This commit is contained in:
Terry Geng
2022-01-21 23:58:49 -05:00
parent 9ba27207ea
commit 37666c7daf
6 changed files with 142 additions and 108 deletions

View File

@ -18,70 +18,73 @@
# ========================================================
[server]
host = 127.0.0.1
port = 64738
password =
channel =
tokens =
certificate =
channel =
host = 127.0.0.1
password =
port = 64738
tokens =
[bot]
username = botamusique
comment = "Hi, I'm here to play radio, local music or youtube/soundcloud music. Have fun!"
<<<<<<< HEAD
avatar =
# default volume from 0 to 1.
=======
>>>>>>> 5d58f6d (fix(config): Reorganize)
volume = 0.1
stereo = True
bandwidth = 96000
playback_mode = one-shot
autoplay_length = 5
clear_when_stop_in_oneshot = False
target_version = git
admin =
music_folder = music_folder/
tmp_folder = /tmp/
pip3_path = venv/bin/pip
auto_check_update = True
logfile =
tmp_folder_max_size = 10
download_attempts = 2
ignored_folders = tmp
ignored_files = Thumbs.db
announce_current_music = True
allow_other_channel_message = False
allow_private_message = True
save_music_library = True
refresh_cache_on_startup = True
save_playlist = True
max_track_playlist = 20
max_track_duration = 60
announce_current_music = True
auto_check_update = True
autoplay_length = 5
avatar =
bandwidth = 96000
clear_when_stop_in_oneshot = False
comment = "Hi, I'm here to play radio, local music or youtube/soundcloud music. Have fun!"
database_path =
delete_allowed = True
download_attempts = 2
ducking = False
ducking_volume = 0.05
ducking_threshold = 3000
ducking_volume = 0.05
ignored_files = Thumbs.db
ignored_folders = tmp
language = en_US
logfile =
max_track_duration = 60
max_track_playlist = 20
music_database_path =
music_folder = music_folder/
pip3_path = venv/bin/pip
playback_mode = one-shot
redirect_stderr = True
refresh_cache_on_startup = True
save_music_library = True
save_playlist = True
stereo = True
target_version = git
tmp_folder = /tmp/
tmp_folder_max_size = 10
username = botamusique
volume = 0.1
when_nobody_in_channel = nothing
youtube_query_cookie =
[webinterface]
access_address = http://127.0.0.1:8181
auth_method = none
enabled = False
flask_secret = ChangeThisPassword
is_web_proxified = True
listening_addr = 127.0.0.1
listening_port = 8181
web_logfile =
auth_method = none
user =
password =
max_attempts = 10
access_address = http://127.0.0.1:8181
flask_secret = ChangeThisPassword
upload_enabled = True
max_upload_file_size = 30M
password =
upload_enabled = True
user =
web_logfile =
[debug]
ffmpeg = False
mumble_connection = False
redirect_ffmpeg_log = True
mumbleConnection = False
youtube_dl = False
[radio]
@ -91,64 +94,65 @@ radiobrony = http://62.210.138.34:8000/live "Brony music of a friend"
jazz = http://jazz-wr04.ice.infomaniak.ch/jazz-wr04-128.mp3 "Jazz Yeah !"
[youtube_dl]
cookie_file =
source_address =
cookiefile =
user_agent =
[commands]
command_symbol = !:
split_username_at_space = False
play_file = file, f
play_file_match = filematch, fm
play_url = url
play_radio = radio
play_playlist = playlist
rb_query = rbquery
rb_play = rbplay
yt_search = ysearch
yt_play = yplay
help = help
pause = pause
play = p, play
stop = stop
remove = rm
clear = clear
skip = skip
last = last
current_music = np, now
volume = volume
kill = kill
stop_and_getout = oust
joinme = joinme
queue = queue
repeat = repeat
random = random
version = version
mode = mode
update = update
list_file = listfile
play_tag = tag
add_tag = addtag
remove_tag = untag
find_tagged = findtagged, ft
search = search
delete_from_library = delete
add_from_shortlist = shortlist, sl
user_ban = userban
user_unban = userunban
url_ban = urlban
url_ban_list = urlbanlist
url_unban = urlunban
url_whitelist = urlwhitelist, urlw
url_unwhitelist = urlunwhitelist, urlunw
url_whitelist_list = urlwhitelistlist, urlwls
add_tag = addtag
add_webinterface_user = webuseradd
change_user_password = password
clear = clear
command_symbol = !:
current_music = np, now
delete_from_library = delete
drop_database = dropdatabase
ducking = duck
ducking_threshold = duckthres
ducking_volume = duckv
drop_database = dropdatabase
rescan = rescan
requests_webinterface_access = web
find_tagged = findtagged, ft
help = help
joinme = joinme
kill = kill
last = last
list_file = listfile
list_webinterface_user = webuserlist
add_webinterface_user = webuseradd
mode = mode
pause = pause
play = p, play
play_file = file, f
play_file_match = filematch, fm
play_playlist = playlist
play_radio = radio
play_tag = tag
play_url = url
queue = queue
random = random
rb_play = rbplay
rb_query = rbquery
remove = rm
remove_tag = untag
remove_webinterface_user = webuserdel
change_user_password = password
repeat = repeat
requests_webinterface_access = web
rescan = rescan
search = search
skip = skip
split_username_at_space = False
stop = stop
stop_and_getout = oust
update = update
url_ban = urlban
url_ban_list = urlbanlist
url_unban = urlunban
url_unwhitelist = urlunwhitelist, urlunw
url_whitelist = urlwhitelist, urlw
url_whitelist_list = urlwhitelistlist, urlwls
user_ban = userban
user_unban = userunban
version = version
volume = volume
yt_play = yplay
yt_search = ysearch