Some config file polish (now that it's being updated anyway)

This commit is contained in:
ejurgensen 2014-11-17 22:53:52 +01:00
parent 9d9c82b6b1
commit 6f2f44168d
2 changed files with 20 additions and 4 deletions

View File

@ -9,18 +9,27 @@
general { general {
# Username # Username
# Make sure the user has read access to the library directories you set
# below, and full access to the databases, log and local audio
uid = "daapd" uid = "daapd"
logfile = "/var/log/forked-daapd.log"
# Database location # Database location
# db_path = "/var/cache/forked-daapd/songs3.db" # db_path = "/var/cache/forked-daapd/songs3.db"
# Log file and level
# Available levels: fatal, log, warning, info, debug, spam # Available levels: fatal, log, warning, info, debug, spam
logfile = "/var/log/forked-daapd.log"
loglevel = log loglevel = log
# Admin password for the non-existent web interface # Admin password for the non-existent web interface
admin_password = "unused" admin_password = "unused"
# Enable/disable IPv6 # Enable/disable IPv6
ipv6 = no ipv6 = no
# Location of cache database # Location of cache database
# cache_path = "/var/cache/forked-daapd/cache.db" # cache_path = "/var/cache/forked-daapd/cache.db"
# DAAP requests that take longer than this threshold (in msec) get their # DAAP requests that take longer than this threshold (in msec) get their
# replies cached for next time. Set to 0 to disable caching. # replies cached for next time. Set to 0 to disable caching.
# cache_daap_threshold = 1000 # cache_daap_threshold = 1000
@ -31,8 +40,10 @@ library {
# Name of the library as displayed by the clients # Name of the library as displayed by the clients
# %h: hostname, %v: version # %h: hostname, %v: version
name = "My Music on %h" name = "My Music on %h"
# TCP port to listen on. Default port is 3689 (daap) # TCP port to listen on. Default port is 3689 (daap)
port = 3689 port = 3689
# Password for the library. Optional. # Password for the library. Optional.
# password = "" # password = ""
@ -83,8 +94,8 @@ library {
# File types the scanner should ignore # File types the scanner should ignore
# Non-audio files will never be added to the database, but here you # Non-audio files will never be added to the database, but here you
# can prevent the scanner from even probing them. This might improve # can prevent the scanner from even probing them. This might improve
# scan time. By default .db and .ini are ignored. # scan time. By default .db, .ini, .db-journal and .pdf are ignored.
# filetypes_ignore = { ".db", ".ini" } # filetypes_ignore = { ".db", ".ini", ".db-journal", ".pdf" }
# Disable startup file scanning # Disable startup file scanning
# When forked-daapd starts it will do an initial file scan of your # When forked-daapd starts it will do an initial file scan of your
@ -110,8 +121,10 @@ library {
audio { audio {
# Name - used in the speaker list in Remote # Name - used in the speaker list in Remote
nickname = "Computer" nickname = "Computer"
# Audio device name for local audio output # Audio device name for local audio output
# card = "default" # card = "default"
# Mixer channel to use for volume control - ALSA/Linux only # Mixer channel to use for volume control - ALSA/Linux only
# If not set, PCM will be used if available, otherwise Master. # If not set, PCM will be used if available, otherwise Master.
# mixer = "" # mixer = ""
@ -123,6 +136,7 @@ audio {
# forked-daapd's volume goes to 11! If that's more than you can handle # forked-daapd's volume goes to 11! If that's more than you can handle
# you can set a lower value here # you can set a lower value here
# max_volume = 11 # max_volume = 11
# AirPlay password # AirPlay password
# password = "s1kr3t" # password = "s1kr3t"
#} #}
@ -131,8 +145,10 @@ audio {
spotify { spotify {
# Directory where user settings should be stored (credentials) # Directory where user settings should be stored (credentials)
# settings_dir = "/var/cache/forked-daapd/libspotify" # settings_dir = "/var/cache/forked-daapd/libspotify"
# Cache directory # Cache directory
# cache_dir = "/tmp" # cache_dir = "/tmp"
# Set preferred bitrate for music streaming # Set preferred bitrate for music streaming
# 0: No preference (default), 1: 96kbps, 2: 160kbps, 3: 320kbps # 0: No preference (default), 1: 96kbps, 2: 160kbps, 3: 320kbps
# bitrate = 0 # bitrate = 0

View File

@ -76,7 +76,7 @@ static cfg_opt_t sec_library[] =
CFG_STR("name_podcasts", "Podcasts", CFGF_NONE), CFG_STR("name_podcasts", "Podcasts", CFGF_NONE),
CFG_STR("name_audiobooks", "Audiobooks", CFGF_NONE), CFG_STR("name_audiobooks", "Audiobooks", CFGF_NONE),
CFG_STR_LIST("artwork_basenames", "{artwork,cover,Folder}", CFGF_NONE), CFG_STR_LIST("artwork_basenames", "{artwork,cover,Folder}", CFGF_NONE),
CFG_STR_LIST("filetypes_ignore", "{.db,.ini}", CFGF_NONE), CFG_STR_LIST("filetypes_ignore", "{.db,.ini,.db-journal,.pdf}", CFGF_NONE),
CFG_BOOL("filescan_disable", cfg_false, CFGF_NONE), CFG_BOOL("filescan_disable", cfg_false, CFGF_NONE),
CFG_BOOL("itunes_overrides", cfg_false, CFGF_NONE), CFG_BOOL("itunes_overrides", cfg_false, CFGF_NONE),
CFG_STR_LIST("no_transcode", NULL, CFGF_NONE), CFG_STR_LIST("no_transcode", NULL, CFGF_NONE),