Ansible repo for digital ocean projects
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

473 lines
16 KiB

  1. # An example configuration file for MPD
  2. # See the mpd.conf man page for a more detailed description of each parameter.
  3. # Files and directories #######################################################
  4. #
  5. # This setting controls the top directory which MPD will search to discover the
  6. # available audio files and add them to the daemon's online database. This
  7. # setting defaults to the XDG directory, otherwise the music directory will be
  8. # be disabled and audio files will only be accepted over ipc socket (using
  9. # file:// protocol) or streaming files over an accepted protocol.
  10. #
  11. #######need to fix this one too
  12. music_directory "/mnt/MUSIC/"
  13. database {
  14. plugin "simple"
  15. path "/var/lib/mpd/mpd.db"
  16. cache_directory "/var/lib/mpd/cache"
  17. }
  18. #
  19. # This setting sets the MPD internal playlist directory. The purpose of this
  20. # directory is storage for playlists created by MPD. The server will use
  21. # playlist files not created by the server but only if they are in the MPD
  22. # format. This setting defaults to playlist saving being disabled.
  23. #
  24. playlist_directory "{{ [path,playlist_directory]|join() }}"
  25. #
  26. # This setting sets the location of the MPD database. This file is used to
  27. # load the database at server start up and store the database while the
  28. # server is not up. This setting defaults to disabled which will allow
  29. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  30. # files over an accepted protocol.
  31. #
  32. #db_file "{{ [path,db_file]|join() }}"
  33. #
  34. # These settings are the locations for the daemon log files for the daemon.
  35. # These logs are great for troubleshooting, depending on your log_level
  36. # settings.
  37. #
  38. # The special value "syslog" makes MPD use the local syslog daemon. This
  39. # setting defaults to logging to syslog, otherwise logging is disabled.
  40. #
  41. log_file "{{ [log_dir,'mpd.log']|join() }}"
  42. #
  43. # This setting sets the location of the file which stores the process ID
  44. # for use of mpd --kill and some init scripts. This setting is disabled by
  45. # default and the pid file will not be stored.
  46. #
  47. pid_file "{{ [path,'/',pid_file]|join() }}"
  48. #
  49. # This setting sets the location of the file which contains information about
  50. # most variables to get MPD back into the same general shape it was in before
  51. # it was brought down. This setting is disabled by default and the server
  52. # state will be reset on server start up.
  53. #
  54. state_file "{{ [path,'/',state_file,]|join() }}"
  55. #
  56. # The location of the sticker database. This is a database which
  57. # manages dynamic information attached to songs.
  58. #
  59. sticker_file "{{ [path,'/',sticker_file,'.sql']|join() }}"
  60. ###############################################################################
  61. # General music daemon options ################################################
  62. #
  63. # This setting specifies the user that MPD will run as. MPD should never run as
  64. # root and you may use this setting to make MPD change its user ID after
  65. # initialization. This setting is disabled by default and MPD is run as the
  66. # current user.
  67. #
  68. user "{{ user }}"
  69. #
  70. # This setting specifies the group that MPD will run as. If not specified
  71. # primary group of user specified with "user" setting will be used (if set).
  72. # This is useful if MPD needs to be a member of group such as "audio" to
  73. # have permission to use sound card.
  74. #
  75. #group "nogroup"
  76. group "{{ group }}"
  77. #
  78. # This setting sets the address for the daemon to listen on. Careful attention
  79. # should be paid if this is assigned to anything other then the default, any.
  80. # This setting can deny access to control of the daemon. Choose any if you want
  81. # to have mpd listen on every address
  82. #
  83. # For network
  84. bind_to_address "{{ bind_to_address }}"
  85. #
  86. # And for Unix Socket
  87. #bind_to_address "/var/run/mpd/socket"
  88. #
  89. # This setting is the TCP port that is desired for the daemon to get assigned
  90. # to.
  91. #
  92. #port "6600"
  93. port "{{ mpdport }}"
  94. #
  95. # This setting controls the type of information which is logged. Available
  96. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  97. # argument is recommended for troubleshooting, though can quickly stretch
  98. # available resources on limited hardware storage.
  99. #
  100. #log_level "default"
  101. log_level "{{ log_level }}"
  102. #
  103. # If you have a problem with your MP3s ending abruptly it is recommended that
  104. # you set this argument to "no" to attempt to fix the problem. If this solves
  105. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  106. # (available as vbrfix in the debian archive), at which
  107. # point gapless MP3 playback can be enabled.
  108. #
  109. #gapless_mp3_playback "yes"
  110. gapless_mp3_playback "{{ gapless_mp3_playback }}"
  111. #
  112. # This setting enables MPD to create playlists in a format usable by other
  113. # music players.
  114. #
  115. #save_absolute_paths_in_playlists "no"
  116. save_absolute_paths_in_playlists "{{ save_absolute_paths_in_playlists }}"
  117. #
  118. # This setting defines a list of tag types that will be extracted during the
  119. # audio file discovery process. Optionally, 'comment' can be added to this
  120. # list.
  121. #
  122. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  123. metadata_to_use "{{ metadata_to_use }}"
  124. #
  125. # This setting enables automatic update of MPD's database when files in
  126. # music_directory are changed.
  127. #
  128. #auto_update "yes"
  129. auto_update "{{ auto_update }}"
  130. #
  131. # Limit the depth of the directories being watched, 0 means only watch
  132. # the music directory itself. There is no limit by default.
  133. #
  134. #auto_update_depth "3"
  135. auto_update_depth "{{ auto_update_depth }}"
  136. #
  137. ###############################################################################
  138. # Symbolic link behavior ######################################################
  139. #
  140. # If this setting is set to "yes", MPD will discover audio files by following
  141. # symbolic links outside of the configured music_directory.
  142. #
  143. #follow_outside_symlinks "yes"
  144. follow_outside_symlinks "{{ follow_outside_symlinks }}"
  145. #
  146. # If this setting is set to "yes", MPD will discover audio files by following
  147. # symbolic links inside of the configured music_directory.
  148. #
  149. #follow_inside_symlinks "yes"
  150. follow_inside_symlinks "{{ follow_inside_symlinks }}"
  151. #
  152. ###############################################################################
  153. # Zeroconf / Avahi Service Discovery ##########################################
  154. #
  155. # If this setting is set to "yes", service information will be published with
  156. # Zeroconf / Avahi.
  157. #
  158. #zeroconf_enabled "yes"
  159. zeroconf_enabled "{{ zeroconf_enabled }}"
  160. #
  161. # The argument to this setting will be the Zeroconf / Avahi unique name for
  162. # this MPD server on the network.
  163. #
  164. #zeroconf_name "Music Player"
  165. zeroconf_name "{{ zeroconf_name }}"
  166. #
  167. ###############################################################################
  168. # Permissions #################################################################
  169. #
  170. # If this setting is set, MPD will require password authorization. The password
  171. # can setting can be specified multiple times for different password profiles.
  172. #
  173. password "HelloKitty@read,add,control,admin"
  174. #
  175. # This setting specifies the permissions a user has who has not yet logged in.
  176. #
  177. #default_permissions "read,add,control,admin"
  178. default_permissions "{{ default_permissions }}"
  179. #
  180. ###############################################################################
  181. # Input #######################################################################
  182. #
  183. input {
  184. plugin "curl"
  185. # proxy "proxy.isp.com:8080"
  186. # proxy_user "user"
  187. # proxy_password "password"
  188. }
  189. #
  190. ###############################################################################
  191. # Audio Output ################################################################
  192. #
  193. # MPD supports various audio output types, as well as playing through multiple
  194. # audio outputs at the same time, through multiple audio_output settings
  195. # blocks. Setting this block is optional, though the server will only attempt
  196. # autodetection for one sound card.
  197. #
  198. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  199. # other audio outputs.
  200. #
  201. # An example of an ALSA output:
  202. #
  203. #audio_output {
  204. # type "alsa"
  205. # name "My ALSA Device"
  206. # device "hw:0,0" # optional
  207. # format "44100:16:2" # optional
  208. # mixer_device "default" # optional
  209. # mixer_control "PCM" # optional
  210. # mixer_index "0" # optional
  211. #}
  212. #
  213. # An example of an OSS output:
  214. #
  215. #audio_output {
  216. # type "oss"
  217. # name "My OSS Device"
  218. # device "/dev/dsp" # optional
  219. # format "44100:16:2" # optional
  220. # mixer_device "/dev/mixer" # optional
  221. # mixer_control "PCM" # optional
  222. #}
  223. #
  224. # An example of a shout output (for streaming to Icecast):
  225. #
  226. #audio_output {
  227. # type "shout"
  228. # encoding "ogg" # optional
  229. # name "My Shout Stream"
  230. # host "localhost"
  231. # port "8000"
  232. # mount "/mpd.ogg"
  233. # password "hackme"
  234. # quality "5.0"
  235. # bitrate "128"
  236. # format "44100:16:1"
  237. # protocol "icecast2" # optional
  238. # user "source" # optional
  239. # description "My Stream Description" # optional
  240. # genre "jazz" # optional
  241. # public "no" # optional
  242. # timeout "2" # optional
  243. #}
  244. #
  245. # An example of a recorder output:
  246. #
  247. #audio_output {
  248. # type "recorder"
  249. # name "My recorder"
  250. # encoder "vorbis" # optional, vorbis or lame
  251. # path "/var/lib/mpd/recorder/mpd.ogg"
  252. ## quality "5.0" # do not define if bitrate is defined
  253. # bitrate "128" # do not define if quality is defined
  254. # format "44100:16:1"
  255. #}
  256. #
  257. audio_output {
  258. type "httpd"
  259. always_on "yes"
  260. enabled "yes"
  261. name "{{ stream }}"
  262. encoder "lame" # optional, vorbis or lame
  263. port "{{ stream_port }}"
  264. bind_to_address "{{ bind_address }}" # optional, IPv4 or IPv6
  265. quality "3.0" # do not define if bitrate is defined
  266. # bitrate "128" # do not define if quality is defined
  267. # format "44100:16:1"
  268. max_clients "0" # optional 0=no limit
  269. }
  270. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  271. #
  272. #audio_output {
  273. # type "pulse"
  274. # name "My Pulse Output"
  275. # server "remote_server" # optional
  276. # sink "remote_server_sink" # optional
  277. #}
  278. #
  279. ## Example "pipe" output:
  280. #
  281. #audio_output {
  282. # type "pipe"
  283. # name "my pipe"
  284. # command "aplay -f cd 2>/dev/null"
  285. ## Or if you're want to use AudioCompress
  286. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  287. ## Or to send raw PCM stream through PCM:
  288. # command "nc example.org 8765"
  289. # format "44100:16:2"
  290. #}
  291. #
  292. ## An example of a null output (for no audio output):
  293. #
  294. #audio_output {
  295. # type "null"
  296. # name "My Null Output"
  297. #}
  298. #
  299. # This setting will change all decoded audio to be converted to the specified
  300. # format before being passed to the audio outputs. By default, this setting is
  301. # disabled.
  302. #
  303. #audio_output_format "44100:16:2"
  304. #
  305. # If MPD has been compiled with libsamplerate support, this setting specifies
  306. # the sample rate converter to use. Possible values can be found in the
  307. # mpd.conf man page or the libsamplerate documentation. By default, this is
  308. # setting is disabled.
  309. #
  310. #samplerate_converter "Fastest Sinc Interpolator"
  311. #
  312. ###############################################################################
  313. ###############################################################################
  314. # Volume control mixer ########################################################
  315. #
  316. # These are the global volume control settings. By default, this setting will
  317. # be detected to the available audio output device, with preference going to
  318. # hardware mixing. Hardware and software mixers for individual audio_output
  319. # sections cannot yet be mixed.
  320. #
  321. # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
  322. # setting is used other sound applications will be affected by the volume
  323. # being controlled by MPD.
  324. #
  325. #mixer_type "hardware"
  326. #
  327. # An example for controlling all mixers through software. This will control
  328. # all controls, even if the mixer is not supported by the device and will not
  329. # affect any other sound producing applications.
  330. #
  331. #mixer_type "software"
  332. #
  333. # This example will not allow MPD to touch the mixer at all and will disable
  334. # all volume controls.
  335. #
  336. #mixer_type "disabled"
  337. #
  338. mixer_type "{{ mixer_type }}"
  339. ###############################################################################
  340. # Normalization automatic volume adjustments ##################################
  341. #
  342. # This setting specifies the type of ReplayGain to use. This setting can have
  343. # the argument "album" or "track". See <http://www.replaygain.org> for more
  344. # details. This setting is disabled by default.
  345. #
  346. #replaygain "album"
  347. replaygain "{{ replaygain }}"
  348. #
  349. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  350. # default this setting is disabled.
  351. #
  352. #replaygain_preamp "0"
  353. replaygain_preamp "{{ replaygain_preamp }}"
  354. #
  355. # This setting enables on-the-fly normalization volume adjustment. This will
  356. # result in the volume of all playing audio to be adjusted so the output has
  357. # equal "loudness". This setting is disabled by default.
  358. #
  359. #volume_normalization "no"
  360. volume_normalization "{{ volume_normalization }}"
  361. #
  362. ###############################################################################
  363. # MPD Internal Buffering ######################################################
  364. #
  365. # This setting adjusts the size of internal decoded audio buffering. Changing
  366. # this may have undesired effects. Don't change this if you don't know what you
  367. # are doing.
  368. #
  369. #audio_buffer_size "2048"
  370. audio_buffer_size "{{ audio_buffer_size }}"
  371. #
  372. # This setting controls the percentage of the buffer which is filled before
  373. # beginning to play. Increasing this reduces the chance of audio file skipping,
  374. # at the cost of increased time prior to audio playback.
  375. #
  376. #buffer_before_play "10%"
  377. buffer_before_play "{{ buffer_before_play }}"
  378. #
  379. ###############################################################################
  380. # Resource Limitations ########################################################
  381. #
  382. # These settings are various limitations to prevent MPD from using too many
  383. # resources. Generally, these settings should be minimized to prevent security
  384. # risks, depending on the operating resources.
  385. #
  386. #connection_timeout "60"
  387. #max_connections "10"
  388. #max_playlist_length "16384"
  389. #max_command_list_size "2048"
  390. max_output_buffer_size "32768"
  391. #
  392. ###############################################################################
  393. # Character Encoding ##########################################################
  394. #
  395. # If file or directory names do not display correctly for your locale then you
  396. # may need to modify this setting. After modification of this setting mpd
  397. # --create-db must be run to change the database.
  398. #
  399. filesystem_charset "UTF-8"
  400. #
  401. # This setting controls the encoding that ID3v1 tags should be converted from.
  402. #
  403. id3v1_encoding "UTF-8"
  404. #
  405. ###############################################################################
  406. # SIDPlay decoder #############################################################
  407. #
  408. # songlength_database:
  409. # Location of your songlengths file, as distributed with the HVSC.
  410. # The sidplay plugin checks this for matching MD5 fingerprints.
  411. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  412. #
  413. # default_songlength:
  414. # This is the default playing time in seconds for songs not in the
  415. # songlength database, or in case you're not using a database.
  416. # A value of 0 means play indefinitely.
  417. #
  418. # filter:
  419. # Turns the SID filter emulation on or off.
  420. #
  421. #decoder {
  422. # plugin "sidplay"
  423. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  424. # default_songlength "120"
  425. # filter "true"
  426. #}
  427. #
  428. ###############################################################################