My configuration files for Debian/Ubuntu applications
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. # An example configuration file for MPD.
  2. # Read the user manual for documentation: http://www.musicpd.org/doc/user/
  3. # or /usr/share/doc/mpd/html/user.html
  4. # Files and directories #######################################################
  5. #
  6. # This setting controls the top directory which MPD will search to discover the
  7. # available audio files and add them to the daemon's online database. This
  8. # setting defaults to the XDG directory, otherwise the music directory will be
  9. # be disabled and audio files will only be accepted over ipc socket (using
  10. # file:// protocol) or streaming files over an accepted protocol.
  11. #
  12. music_directory "/var/lib/mpd/music"
  13. #
  14. # This setting sets the MPD internal playlist directory. The purpose of this
  15. # directory is storage for playlists created by MPD. The server will use
  16. # playlist files not created by the server but only if they are in the MPD
  17. # format. This setting defaults to playlist saving being disabled.
  18. #
  19. playlist_directory "/var/lib/mpd/playlists"
  20. #
  21. # This setting sets the location of the MPD database. This file is used to
  22. # load the database at server start up and store the database while the
  23. # server is not up. This setting defaults to disabled which will allow
  24. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  25. # files over an accepted protocol.
  26. #
  27. db_file "/var/lib/mpd/tag_cache"
  28. #
  29. # These settings are the locations for the daemon log files for the daemon.
  30. # These logs are great for troubleshooting, depending on your log_level
  31. # settings.
  32. #
  33. # The special value "syslog" makes MPD use the local syslog daemon. This
  34. # setting defaults to logging to syslog, or to journal if mpd was started as
  35. # a systemd service.
  36. #
  37. log_file "/var/log/mpd/mpd.log"
  38. #
  39. # This setting sets the location of the file which stores the process ID
  40. # for use of mpd --kill and some init scripts. This setting is disabled by
  41. # default and the pid file will not be stored.
  42. #
  43. pid_file "/run/mpd/pid"
  44. #
  45. # This setting sets the location of the file which contains information about
  46. # most variables to get MPD back into the same general shape it was in before
  47. # it was brought down. This setting is disabled by default and the server
  48. # state will be reset on server start up.
  49. #
  50. state_file "/var/lib/mpd/state"
  51. #
  52. # The location of the sticker database. This is a database which
  53. # manages dynamic information attached to songs.
  54. #
  55. sticker_file "/var/lib/mpd/sticker.sql"
  56. #
  57. ###############################################################################
  58. # General music daemon options ################################################
  59. #
  60. # This setting specifies the user that MPD will run as. MPD should never run as
  61. # root and you may use this setting to make MPD change its user ID after
  62. # initialization. This setting is disabled by default and MPD is run as the
  63. # current user.
  64. #
  65. user "mpd"
  66. #
  67. # This setting specifies the group that MPD will run as. If not specified
  68. # primary group of user specified with "user" setting will be used (if set).
  69. # This is useful if MPD needs to be a member of group such as "audio" to
  70. # have permission to use sound card.
  71. #
  72. #group "nogroup"
  73. #
  74. # This setting sets the address for the daemon to listen on. Careful attention
  75. # should be paid if this is assigned to anything other then the default, any.
  76. # This setting can deny access to control of the daemon. Choose any if you want
  77. # to have mpd listen on every address. Not effective if systemd socket
  78. # activation is in use.
  79. #
  80. # For network
  81. bind_to_address "localhost"
  82. #
  83. # And for Unix Socket
  84. #bind_to_address "/run/mpd/socket"
  85. #
  86. # This setting is the TCP port that is desired for the daemon to get assigned
  87. # to.
  88. #
  89. port "6602"
  90. #
  91. # This setting controls the type of information which is logged. Available
  92. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  93. # argument is recommended for troubleshooting, though can quickly stretch
  94. # available resources on limited hardware storage.
  95. #
  96. #log_level "default"
  97. #
  98. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  99. # of starting playback after startup.
  100. #
  101. #restore_paused "no"
  102. #
  103. # This setting enables MPD to create playlists in a format usable by other
  104. # music players.
  105. #
  106. #save_absolute_paths_in_playlists "no"
  107. #
  108. # This setting defines a list of tag types that will be extracted during the
  109. # audio file discovery process. The complete list of possible values can be
  110. # found in the user manual.
  111. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  112. #
  113. # This example just enables the "comment" tag without disabling all
  114. # the other supported tags:
  115. #metadata_to_use "+comment"
  116. #
  117. # This setting enables automatic update of MPD's database when files in
  118. # music_directory are changed.
  119. #
  120. #auto_update "yes"
  121. #
  122. # Limit the depth of the directories being watched, 0 means only watch
  123. # the music directory itself. There is no limit by default.
  124. #
  125. #auto_update_depth "3"
  126. #
  127. ###############################################################################
  128. # Symbolic link behavior ######################################################
  129. #
  130. # If this setting is set to "yes", MPD will discover audio files by following
  131. # symbolic links outside of the configured music_directory.
  132. #
  133. #follow_outside_symlinks "yes"
  134. #
  135. # If this setting is set to "yes", MPD will discover audio files by following
  136. # symbolic links inside of the configured music_directory.
  137. #
  138. #follow_inside_symlinks "yes"
  139. #
  140. ###############################################################################
  141. # Zeroconf / Avahi Service Discovery ##########################################
  142. #
  143. # If this setting is set to "yes", service information will be published with
  144. # Zeroconf / Avahi.
  145. #
  146. #zeroconf_enabled "yes"
  147. #
  148. # The argument to this setting will be the Zeroconf / Avahi unique name for
  149. # this MPD server on the network. %h will be replaced with the hostname.
  150. #
  151. #zeroconf_name "Music Player @ %h"
  152. #
  153. ###############################################################################
  154. # Permissions #################################################################
  155. #
  156. # If this setting is set, MPD will require password authorization. The password
  157. # setting can be specified multiple times for different password profiles.
  158. #
  159. #password "password@read,add,control,admin"
  160. #
  161. # This setting specifies the permissions a user has who has not yet logged in.
  162. #
  163. #default_permissions "read,add,control,admin"
  164. #
  165. ###############################################################################
  166. # Database #######################################################################
  167. #
  168. #database {
  169. # plugin "proxy"
  170. # host "other.mpd.host"
  171. # port "6600"
  172. #}
  173. # Input #######################################################################
  174. #
  175. input {
  176. plugin "curl"
  177. # proxy "proxy.isp.com:8080"
  178. # proxy_user "user"
  179. # proxy_password "password"
  180. }
  181. # QOBUZ input plugin
  182. input {
  183. enabled "no"
  184. plugin "qobuz"
  185. # app_id "ID"
  186. # app_secret "SECRET"
  187. # username "USERNAME"
  188. # password "PASSWORD"
  189. # format_id "N"
  190. }
  191. # TIDAL input plugin
  192. input {
  193. enabled "no"
  194. plugin "tidal"
  195. # token "TOKEN"
  196. # username "USERNAME"
  197. # password "PASSWORD"
  198. # audioquality "Q"
  199. }
  200. # Decoder #####################################################################
  201. #
  202. decoder {
  203. plugin "hybrid_dsd"
  204. enabled "no"
  205. # gapless "no"
  206. }
  207. #
  208. ###############################################################################
  209. # Audio Output ################################################################
  210. #
  211. # MPD supports various audio output types, as well as playing through multiple
  212. # audio outputs at the same time, through multiple audio_output settings
  213. # blocks. Setting this block is optional, though the server will only attempt
  214. # autodetection for one sound card.
  215. #
  216. # An example of an ALSA output:
  217. #
  218. audio_output {
  219. type "alsa"
  220. name "My ALSA Device"
  221. # device "hw:0,0" # optional
  222. # mixer_type "hardware" # optional
  223. # mixer_device "default" # optional
  224. # mixer_control "PCM" # optional
  225. # mixer_index "0" # optional
  226. }
  227. #
  228. # An example of an OSS output:
  229. #
  230. #audio_output {
  231. # type "oss"
  232. # name "My OSS Device"
  233. # device "/dev/dsp" # optional
  234. # mixer_type "hardware" # optional
  235. # mixer_device "/dev/mixer" # optional
  236. # mixer_control "PCM" # optional
  237. #}
  238. #
  239. # An example of a shout output (for streaming to Icecast):
  240. #
  241. #audio_output {
  242. # type "shout"
  243. # encoder "vorbis" # optional
  244. # name "My Shout Stream"
  245. # host "localhost"
  246. # port "8000"
  247. # mount "/mpd.ogg"
  248. # password "hackme"
  249. # quality "5.0"
  250. # bitrate "128"
  251. # format "44100:16:1"
  252. # protocol "icecast2" # optional
  253. # user "source" # optional
  254. # description "My Stream Description" # optional
  255. # url "http://example.com" # optional
  256. # genre "jazz" # optional
  257. # public "no" # optional
  258. # timeout "2" # optional
  259. # mixer_type "software" # optional
  260. #}
  261. #
  262. # An example of a recorder output:
  263. #
  264. #audio_output {
  265. # type "recorder"
  266. # name "My recorder"
  267. # encoder "vorbis" # optional, vorbis or lame
  268. # path "/var/lib/mpd/recorder/mpd.ogg"
  269. ## quality "5.0" # do not define if bitrate is defined
  270. # bitrate "128" # do not define if quality is defined
  271. # format "44100:16:1"
  272. #}
  273. #
  274. # An example of a httpd output (built-in HTTP streaming server):
  275. #
  276. #audio_output {
  277. # type "httpd"
  278. # name "My HTTP Stream"
  279. # encoder "vorbis" # optional, vorbis or lame
  280. # port "8000"
  281. # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
  282. # quality "5.0" # do not define if bitrate is defined
  283. # bitrate "128" # do not define if quality is defined
  284. # format "44100:16:1"
  285. # max_clients "0" # optional 0=no limit
  286. #}
  287. #
  288. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  289. # Please see README.Debian if you want mpd to play through the pulseaudio
  290. # daemon started as part of your graphical desktop session!
  291. #
  292. #audio_output {
  293. # type "pulse"
  294. # name "My Pulse Output"
  295. # server "remote_server" # optional
  296. # sink "remote_server_sink" # optional
  297. #}
  298. #
  299. # An example of a winmm output (Windows multimedia API).
  300. #
  301. #audio_output {
  302. # type "winmm"
  303. # name "My WinMM output"
  304. # device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  305. # or
  306. # device "0" # optional
  307. # mixer_type "hardware" # optional
  308. #}
  309. #
  310. # An example of an openal output.
  311. #
  312. #audio_output {
  313. # type "openal"
  314. # name "My OpenAL output"
  315. # device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  316. #}
  317. #
  318. ## Example "pipe" output:
  319. #
  320. #audio_output {
  321. # type "pipe"
  322. # name "my pipe"
  323. # command "aplay -f cd 2>/dev/null"
  324. ## Or if you're want to use AudioCompress
  325. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  326. ## Or to send raw PCM stream through PCM:
  327. # command "nc example.org 8765"
  328. # format "44100:16:2"
  329. #}
  330. #
  331. ## An example of a null output (for no audio output):
  332. #
  333. #audio_output {
  334. # type "null"
  335. # name "My Null Output"
  336. # mixer_type "none" # optional
  337. #}
  338. #
  339. ###############################################################################
  340. # Normalization automatic volume adjustments ##################################
  341. #
  342. # This setting specifies the type of ReplayGain to use. This setting can have
  343. # the argument "off", "album", "track" or "auto". "auto" is a special mode that
  344. # chooses between "track" and "album" depending on the current state of
  345. # random playback. If random playback is enabled then "track" mode is used.
  346. # See <http://www.replaygain.org> for more details about ReplayGain.
  347. # This setting is off by default.
  348. #
  349. #replaygain "album"
  350. #
  351. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  352. # default this setting is disabled.
  353. #
  354. #replaygain_preamp "0"
  355. #
  356. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  357. # By default this setting is disabled.
  358. #
  359. #replaygain_missing_preamp "0"
  360. #
  361. # This setting enables or disables ReplayGain limiting.
  362. # MPD calculates actual amplification based on the ReplayGain tags
  363. # and replaygain_preamp / replaygain_missing_preamp setting.
  364. # If replaygain_limit is enabled MPD will never amplify audio signal
  365. # above its original level. If replaygain_limit is disabled such amplification
  366. # might occur. By default this setting is enabled.
  367. #
  368. #replaygain_limit "yes"
  369. #
  370. # This setting enables on-the-fly normalization volume adjustment. This will
  371. # result in the volume of all playing audio to be adjusted so the output has
  372. # equal "loudness". This setting is disabled by default.
  373. #
  374. #volume_normalization "no"
  375. #
  376. ###############################################################################
  377. # Character Encoding ##########################################################
  378. #
  379. # If file or directory names do not display correctly for your locale then you
  380. # may need to modify this setting.
  381. #
  382. filesystem_charset "UTF-8"
  383. #
  384. ###############################################################################