Commit b261abd2 authored by Ronald van Engelen's avatar Ronald van Engelen

isolated db_file and added database (proxy) plugin

parent 1b05a563
### mpd configuration snippet for mpd-configure.
### see `README` in current directory.
###
### common configuration parameters regarding using a database proxy with mpd.
###
## the database (usually called `tag_cache`) is provided and managed
## either by this mpd server, using the 'db_file' parameter, or by a
## remote mpd host (which does have a db_file parameter) in conjuction
## with the following proxy setting.
##
## In the latter case the 'host' parameter below should point at the
## mpd host which does have the db_file parameter.
##
## remember, either enable this plugin or set the 'db_file' parameter
## (using the provided '../confs-available/database.conf' file)
database {
plugin "proxy"
host "${G_PATHS_DATABASEPROXYHOST:-${CONF_MPD_DATABASEPROXYHOST}}"
}
### mpd configuration snippet for mpd-configure.
### see `README` in current directory.
###
### common configuration parameters regarding the database used by mpd.
###
## (required) path to the file where mpd keeps its 'database', usually
## called `tag_cache`
##
## conflicts with the database proxy plugin (in
## `../confs-available/database-proxy.conf`)
##
db_file "${G_PATHS_DBFILE:-${CONF_MPD_DBFILE}}"
......@@ -8,10 +8,6 @@
## `XDG_MUSIC_DIR'.
music_directory "${G_PATHS_MUSICDIRECTORY:-${CONF_MPD_MUSICDIR}}"
## (required) path to the file where mpd keeps its 'database', usually
## called `tag_cache`
db_file "${G_PATHS_DBFILE:-${CONF_MPD_DBFILE}}"
## (required) path to the file where mpd will send its logging to.
log_file "${G_PATHS_LOGFILE:-${CONF_MPD_LOGFILE}}"
......
......@@ -39,3 +39,8 @@
#CONF_MPD_NETWORK_BINDTOADDRESS="0.0.0.0"
## 2. mpd.conf parameter: `port`
#CONF_MPD_NETWORK_PORT="6600"
## example for specifying a database proxy mpd host in
## `database-proxy.conf`:
## 1. mpd.conf database plugin parameter:
#CONF_MPD_DATABASEPROXYHOST="myfastmpd.local"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment