You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

193 lines
6.7 KiB

  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. # There are 5 default playlists: "Library", "Music", "Movies", "TV Shows"
  66. # and "Podcasts". Here you can change the names of these playlists.
  67. # name_library = "Library"
  68. # name_music = "Music"
  69. # name_movies = "Movies"
  70. # name_tvshows = "TV Shows"
  71. # name_podcasts = "Podcasts"
  72. # name_audiobooks = "Audiobooks"
  73. # Artwork file names (without file type extension)
  74. # forked-daapd will look for jpg and png files with these base names
  75. # artwork_basenames = { "artwork", "cover", "Folder" }
  76. # Enable searching for artwork corresponding to each individual media
  77. # file instead of only looking for album artwork. This is disabled by
  78. # default to reduce cache size.
  79. # artwork_individual = false
  80. # File types the scanner should ignore
  81. # Non-audio files will never be added to the database, but here you
  82. # can prevent the scanner from even probing them. This might improve
  83. # scan time. By default .db, .ini, .db-journal and .pdf are ignored.
  84. # filetypes_ignore = { ".db", ".ini", ".db-journal", ".pdf" }
  85. # File paths the scanner should ignore
  86. # If you want to exclude files on a more advanced basis you can enter
  87. # one or more POSIX regular expressions, and any file with a matching
  88. # path will be ignored.
  89. # filepath_ignore = { "myregex" }
  90. # Disable startup file scanning
  91. # When forked-daapd starts it will do an initial file scan of your
  92. # library (and then watch it for changes). If you are sure your library
  93. # never changes while forked-daapd is not running, you can disable the
  94. # initial file scan and save some system ressources. Disabling this scan
  95. # may lead to forked-daapd's database coming out of sync with the
  96. # library. If that happens read the instructions in the README on how
  97. # to trigger a rescan.
  98. # filescan_disable = false
  99. # Should iTunes metadata override ours?
  100. # itunes_overrides = false
  101. # Formats: mp4a, mp4v, mpeg, alac, flac, mpc, ogg, wma, wmal, wmav, aif, wav
  102. # Formats that should never be transcoded
  103. # no_transcode = { "alac", "mp4a" }
  104. # Formats that should always be transcoded
  105. # force_transcode = { "ogg", "flac" }
  106. }
  107. # Local audio output
  108. audio {
  109. # Name - used in the speaker list in Remote
  110. nickname = "OpenWrt"
  111. # Audio device name for local audio output
  112. # card = "default"
  113. # Mixer channel to use for volume control - ALSA/Linux only
  114. # If not set, PCM will be used if available, otherwise Master.
  115. # mixer = ""
  116. }
  117. # AirPlay/Airport Express device settings
  118. # (make sure you get the capitalization of the device name right)
  119. #airplay "My AirPlay device" {
  120. # forked-daapd's volume goes to 11! If that's more than you can handle
  121. # you can set a lower value here
  122. # max_volume = 11
  123. # AirPlay password
  124. # password = "s1kr3t"
  125. #}
  126. # Spotify settings (only have effect if Spotify enabled - see README/INSTALL)
  127. spotify {
  128. # Directory where user settings should be stored (credentials)
  129. # settings_dir = "/var/cache/forked-daapd/libspotify"
  130. # Cache directory
  131. # cache_dir = "/tmp"
  132. # Set preferred bitrate for music streaming
  133. # 0: No preference (default), 1: 96kbps, 2: 160kbps, 3: 320kbps
  134. # bitrate = 0
  135. }
  136. # SQLite configuration (allows to modify the operation of the SQLite databases)
  137. # Make sure to read the SQLite documentation for the corresponding PRAGMA statements as
  138. # changing them from the defaults may increase the possibility of database corruptions!
  139. # By default the SQLite default values are used.
  140. sqlite {
  141. # Cache size in number of db pages for the library database
  142. # (SQLite default page size is 1024 bytes and cache size is 2000 pages)
  143. # pragma_cache_size_library = 2000
  144. # Cache size in number of db pages for the daap cache database
  145. # (SQLite default page size is 1024 bytes and cache size is 2000 pages)
  146. # pragma_cache_size_cache = 2000
  147. # Sets the journal mode for the database
  148. # DELETE (default), TRUNCATE, PERSIST, MEMORY, WAL, OFF
  149. # pragma_journal_mode = DELETE
  150. # Change the setting of the "synchronous" flag
  151. # 0: OFF, 1: NORMAL, 2: FULL (default)
  152. # pragma_synchronous = 2
  153. # Should the database be vacuumed on startup? (increases startup time,
  154. # but may reduce database size). Default is yes.
  155. # vacuum = yes
  156. }