forked-daapd.conf 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. # A quick guide to configuring forked-daapd:
  2. #
  3. # For regular use, the most important setting to configure is "directories",
  4. # which should be the location of your media. Whatever user you have set as
  5. # "uid" must have read access to this location. If the location is a network
  6. # mount, please see the README.
  7. #
  8. # In all likelihood, that's all you need to do!
  9. general {
  10. # Username
  11. # Make sure the user has read access to the library directories you set
  12. # below, and full access to the databases, log and local audio
  13. uid = "daapd"
  14. # Database location
  15. db_path = "/var/cache/forked-daapd/songs3.db"
  16. # Log file and level
  17. # Available levels: fatal, log, warning, info, debug, spam
  18. logfile = "/var/log/forked-daapd.log"
  19. loglevel = log
  20. # Admin password for the non-existent web interface
  21. admin_password = "unused"
  22. # Enable/disable IPv6
  23. ipv6 = no
  24. # Location of cache database
  25. cache_path = "/var/cache/forked-daapd/cache.db"
  26. # DAAP requests that take longer than this threshold (in msec) get their
  27. # replies cached for next time. Set to 0 to disable caching.
  28. # cache_daap_threshold = 1000
  29. }
  30. # Library configuration
  31. library {
  32. # Name of the library as displayed by the clients
  33. # %h: hostname, %v: version
  34. name = "My Music on %h"
  35. # TCP port to listen on. Default port is 3689 (daap)
  36. port = 3689
  37. # Password for the library. Optional.
  38. # password = ""
  39. # Directories to index
  40. directories = { "/srv/music" }
  41. # Directories containing podcasts
  42. # For each directory that is indexed the path is matched against these
  43. # names. If there is a match all items in the directory are marked as
  44. # podcasts. Eg. if you index /srv/music, and your podcasts are in
  45. # /srv/music/Podcasts, you can set this to "/Podcasts".
  46. # (changing this setting only takes effect after rescan, see the README)
  47. podcasts = { "/Podcasts" }
  48. # Directories containing audiobooks
  49. # For each directory that is indexed the path is matched against these
  50. # names. If there is a match all items in the directory are marked as
  51. # audiobooks.
  52. # (changing this setting only takes effect after rescan, see the README)
  53. audiobooks = { "/Audiobooks" }
  54. # Directories containing compilations (eg soundtracks)
  55. # For each directory that is indexed the path is matched against these
  56. # names. If there is a match all items in the directory are marked as
  57. # compilations.
  58. # (changing this setting only takes effect after rescan, see the README)
  59. compilations = { "/Compilations" }
  60. # Compilations usually have many artists, and if you don't want every
  61. # artist to be listed when artist browsing in Remote, you can set
  62. # a single name which will be used for all music in the compilation dir
  63. # (changing this setting only takes effect after rescan, see the README)
  64. compilation_artist = "Various artists"
  65. # Internet streams in your playlists will by default be shown in the
  66. # "Radio" library, like iTunes does. However, some clients (like
  67. # TunesRemote+) won't show the "Radio" library. If you would also like
  68. # to have them shown like normal playlists, you can enable this option.
  69. # radio_playlists = false
  70. # There are 5 default playlists: "Library", "Music", "Movies", "TV Shows"
  71. # and "Podcasts". Here you can change the names of these playlists.
  72. # name_library = "Library"
  73. # name_music = "Music"
  74. # name_movies = "Movies"
  75. # name_tvshows = "TV Shows"
  76. # name_podcasts = "Podcasts"
  77. # name_audiobooks = "Audiobooks"
  78. # name_radio = "Radio"
  79. # Artwork file names (without file type extension)
  80. # forked-daapd will look for jpg and png files with these base names
  81. # artwork_basenames = { "artwork", "cover", "Folder" }
  82. # Enable searching for artwork corresponding to each individual media
  83. # file instead of only looking for album artwork. This is disabled by
  84. # default to reduce cache size.
  85. # artwork_individual = false
  86. # File types the scanner should ignore
  87. # Non-audio files will never be added to the database, but here you
  88. # can prevent the scanner from even probing them. This might improve
  89. # scan time. By default .db, .ini, .db-journal and .pdf are ignored.
  90. # filetypes_ignore = { ".db", ".ini", ".db-journal", ".pdf" }
  91. # File paths the scanner should ignore
  92. # If you want to exclude files on a more advanced basis you can enter
  93. # one or more POSIX regular expressions, and any file with a matching
  94. # path will be ignored.
  95. # filepath_ignore = { "myregex" }
  96. # Disable startup file scanning
  97. # When forked-daapd starts it will do an initial file scan of your
  98. # library (and then watch it for changes). If you are sure your library
  99. # never changes while forked-daapd is not running, you can disable the
  100. # initial file scan and save some system ressources. Disabling this scan
  101. # may lead to forked-daapd's database coming out of sync with the
  102. # library. If that happens read the instructions in the README on how
  103. # to trigger a rescan.
  104. # filescan_disable = false
  105. # Should iTunes metadata override ours?
  106. # itunes_overrides = false
  107. # Formats: mp4a, mp4v, mpeg, alac, flac, mpc, ogg, wma, wmal, wmav, aif, wav
  108. # Formats that should never be transcoded
  109. # no_transcode = { "alac", "mp4a" }
  110. # Formats that should always be transcoded
  111. # force_transcode = { "ogg", "flac" }
  112. }
  113. # Local audio output
  114. audio {
  115. # Name - used in the speaker list in Remote
  116. nickname = "OpenWrt"
  117. # Audio device name for local audio output
  118. # card = "default"
  119. # Mixer channel to use for volume control - ALSA/Linux only
  120. # If not set, PCM will be used if available, otherwise Master.
  121. # mixer = ""
  122. }
  123. # AirPlay/Airport Express device settings
  124. # (make sure you get the capitalization of the device name right)
  125. #airplay "My AirPlay device" {
  126. # forked-daapd's volume goes to 11! If that's more than you can handle
  127. # you can set a lower value here
  128. # max_volume = 11
  129. # AirPlay password
  130. # password = "s1kr3t"
  131. #}
  132. # SQLite configuration (allows to modify the operation of the SQLite databases)
  133. # Make sure to read the SQLite documentation for the corresponding PRAGMA statements as
  134. # changing them from the defaults may increase the possibility of database corruptions!
  135. # By default the SQLite default values are used.
  136. sqlite {
  137. # Cache size in number of db pages for the library database
  138. # (SQLite default page size is 1024 bytes and cache size is 2000 pages)
  139. # pragma_cache_size_library = 2000
  140. # Cache size in number of db pages for the daap cache database
  141. # (SQLite default page size is 1024 bytes and cache size is 2000 pages)
  142. # pragma_cache_size_cache = 2000
  143. # Sets the journal mode for the database
  144. # DELETE (default), TRUNCATE, PERSIST, MEMORY, WAL, OFF
  145. # pragma_journal_mode = DELETE
  146. # Change the setting of the "synchronous" flag
  147. # 0: OFF, 1: NORMAL, 2: FULL (default)
  148. # pragma_synchronous = 2
  149. # Should the database be vacuumed on startup? (increases startup time,
  150. # but may reduce database size). Default is yes.
  151. # vacuum = yes
  152. }