Ansible repo for digital ocean projects
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

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