· 6 years ago · Sep 22, 2019, 07:44 AM
1;#<?php exit(); ?>##
2;#########################################################
3; General Config #
4;#########################################################
5
6; This value is used to detect quickly
7; if this config file is up to date
8; this is compared against a value hard-coded
9; into the init script
10config_version = 40
11
12; Allow you to hard code a default git branch for Ampache
13; If you set this value the inbuilt updater will use this branch for updates.
14; POSSIBLE VALUES: master develop
15; DEFAULT: ""
16;github_force_branch = "develop"
17
18;#########################################################
19; Path Vars #
20;#########################################################
21
22; The public http host of your server.
23; If not set, retrieved automatically from client request.
24; This setting is required for WebSocket server
25; DEFAULT: ""
26;http_host = "localhost"
27
28; The public http port of your server.
29; If not set, retrieved automatically from client request.
30; DEFAULT:
31;http_port = 80
32
33; The public path to your Ampache install
34; Do not put a trailing / on this path
35; For example if your site is located at http://localhost
36; than you do not need to enter anything for the web_path
37; if it is located at http://localhost/music you need to
38; set web_path to /music
39; DEFAULT: ""
40web_path = ""
41
42; The local http url of your server.
43; If not set, retrieved automatically from server information.
44; DEFAULT: ""
45;local_web_path = "http://localhost/ampache"
46
47
48;#########################################################
49; Database #
50;#########################################################
51
52; Hostname of your database
53; For socket authentication, set the path to socket file (e.g. /var/run/mysqld/mysqld.sock)
54; DEFAULT: localhost
55database_hostname = "localhost"
56
57; Port to use when connecting to your database
58; DEFAULT: none
59database_port = ""
60
61; Name of your Ampache database
62; DEFAULT: ampache
63database_name = "ampache"
64
65; Username for your Ampache database
66; DEFAULT: ""
67database_username = "ampache"
68
69; Password for your Ampache database, this can not be blank
70; this is a 'forced' security precaution, the default value
71; will not work (except if using socket authentication)
72; DEFAULT: ""
73database_password = "REDACTED"
74
75
76;#########################################################
77; Session and Security #
78;#########################################################
79
80; Cryptographic secret
81; This MUST BE changed with your own secret key. Ampache-specific, just pick any random string you want.
82secret_key = "REDACTED"
83
84; Length that a session will last expressed in seconds. Default is
85; one hour.
86; DEFAULT: 3600
87session_length = "3600"
88
89; Length that the session for a single streaming instance will last
90; the default is two hours. With some clients, and long songs this can
91; cause playback to stop, increase this value if you experience that
92; DEFAULT: 7200
93stream_length = "7200"
94
95; This length defines how long a 'remember me' session and cookie will
96; last, the default is 86400, same as length. It is up to the administrator
97; of the box to increase this, for reference 86400 = 1 day,
98; 604800 = 1 week, and 2419200 = 1 month
99; DEFAULT: 604800
100remember_length = "604800"
101
102; Name of the Session/Cookie that will sent to the browser
103; default should be fine
104; DEFAULT: ampache
105session_name = "ampache"
106
107; Lifetime of the Cookie, 0 == Forever (until browser close) , otherwise in terms of seconds
108; If you want cookies to last past a browser close set this to a value in seconds.
109; DEFAULT: 0
110session_cookielife = "0"
111
112; Is the cookie a "secure" cookie? This should only be set to 1 (true) if you are
113; running a secure site (HTTPS).
114; DEFAULT: 0
115session_cookiesecure = "0"
116
117; Auth Methods
118; This defines which auth methods Auth will attempt to use and in which order.
119; If auto_create isn't enabled the user must exist locally.
120; DEFAULT: mysql
121; VALUES: mysql,ldap,http,pam,external,openid
122auth_methods = "mysql"
123
124; External authentication
125; This sets the helper used for external authentication. It should conform to
126; the interface used by mod_authnz_external
127; DEFAULT: none
128;external_authenticator = "/usr/sbin/pwauth"
129
130; Automatic local password updating
131; Determines whether successful authentication against an external source
132; will result in an update to the password stored in the database.
133; A locally stored password is needed for API access.
134; DEFAULT: false
135;auth_password_save = "false"
136
137; Logout redirection target
138; Defaults to our own login.php, but we can override it here if, for instance,
139; we want to redirect to an SSO provider instead.
140; logout_redirect = "http://sso.example.com/logout"
141
142; Use Access List
143; Toggle this on if you want Ampache to pay attention to the access list
144; and only allow streaming/downloading/api-rpc from known hosts api-rpc
145; will not work without this on.
146; NOTE: Default Behavior is DENY FROM ALL
147; DEFAULT: true
148access_control = "true"
149
150; Require Session
151; If this is set to true Ampache will make sure that the URL passed when
152; attempting to retrieve a song contains a valid Session ID This prevents
153; others from guessing URL's. This setting is ignored if you have use_auth
154; disabled.
155; DEFAULT: true
156require_session = "true"
157
158; Require LocalNet Session
159; If this is set to true then Ampache will require that a valid session
160; is passed even on hosts defined in the Local Network ACL. This setting
161; has no effect if access_control is not enabled
162; DEFAULT: true
163require_localnet_session = "true"
164
165; Multiple Logins
166; Added by Vlet 07/25/07
167; When this setting is enabled a user may only be logged in from a single
168; IP address at any one time, this is to prevent sharing of accounts
169; DEFAULT: false
170;prevent_multiple_logins = "false"
171
172
173;#########################################################
174; Metadata #
175;#########################################################
176
177; This determines the tag order for all cataloged
178; music. If none of the listed tags are found then
179; Ampache will randomly use whatever was found.
180; POSSIBLE VALUES: ape asf avi id3v1 id3v2 lyrics3 matroska mpeg quicktime riff
181; vorbiscomment
182; DEFAULT: id3v2 id3v1 vorbiscomment quicktime matroska ape asf avi mpeg riff
183getid3_tag_order = "id3v2,id3v1,vorbiscomment,quicktime,matroska,ape,asf,avi,mpeg,riff"
184
185; This determines whether we try to autodetect the encoding for id3v2 tags.
186; May break valid tags.
187; DEFAULT: false
188;getid3_detect_id3v2_encoding = "false"
189
190; This determines if we write the changes to files (as id3 tags) when modifying metadata, or only keep them in Ampache (the default).
191; DEFAULT: false
192;write_id3 = "false"
193
194; This determines if we write the changes to files (as id3 tags) when modifying album art, or only keep them in Ampache (the default)
195; as id3 metadata when updated.
196; DEFAULT: false
197;write_id3_art = "false"
198
199; This determines the order in which metadata sources are used (and in the
200; case of plugins, checked)
201; POSSIBLE VALUES (builtins): filename and getID3
202; POSSIBLE VALUES (plugins): MusicBrainz,TheAudioDb, plus any others you've installed.
203; DEFAULT: getID3 filename
204metadata_order = "getID3,filename"
205
206; This determines the order in which metadata sources are used (and in the
207; case of plugins, checked) for video files
208; POSSIBLE VALUES (builtins): filename and getID3
209; POSSIBLE VALUES (plugins): Tvdb,Tmdb,Omdb, plus any others you've installed.
210; DEFAULT: filename getID3
211metadata_order_video = "filename,getID3"
212
213; This determines if extended metadata grabbed from external services should be deferred.
214; If enabled, extended metadata is retrieved when browsing the library item.
215; If disabled, extended metadata is retrieved at catalog update.
216; Today, only Artist information (summary, place formed, ...) can be deferred.
217; DEFAULT: true
218deferred_ext_metadata = "true"
219
220; Some taggers use delimiters other than \0 for fields
221; This list specifies possible delimiters additional to \0
222; This setting takes a regex pattern.
223; DEFAULT: // / \ | , ;
224additional_genre_delimiters = "[/]{2}|[/|\|\|,|;]"
225
226; Enable importing custom metadata from files.
227; This will need a bit of time during the import. So you may want to disable this
228; if you have troubles with huge databases.
229; DEFAULT: false
230;enable_custom_metadata = "false"
231
232
233;#########################################################
234; Catalog #
235;#########################################################
236
237; File Pattern
238; This defines which file types Ampache will attempt to catalog
239; You can specify any file extension you want in here separating them
240; with a |
241; DEFAULT: mp3|mpc|m4p|m4a|aac|ogg|oga|wav|aif|aiff|rm|wma|asf|flac|opus|spx|ra|ape|shn|wv
242catalog_file_pattern = "mp3|mpc|m4p|m4a|aac|ogg|oga|wav|aif|aiff|rm|wma|asf|flac|opus|spx|ra|ape|shn|wv"
243
244; Video Pattern
245; This defines which video file types Ampache will attempt to catalog
246; You can specify any file extension you want in here separating them with
247; a | but Ampache may not be able to parse them
248; DEAFULT: avi|mpg|mpeg|flv|m4v|mp4|webm|mkv|wmv|ogv|mov|divx|m2ts
249catalog_video_pattern = "avi|mpg|mpeg|flv|m4v|mp4|webm|mkv|wmv|ogv|mov|divx|m2ts"
250
251; Playlist Pattern
252; This defines which playlist types Ampache will attempt to catalog
253; You can specify any file extension you want in here separating them with
254; a | but Ampache may not be able to parse them
255; DEFAULT: m3u|m3u8|pls|asx|xspf
256catalog_playlist_pattern = "m3u|m3u8|pls|asx|xspf"
257
258; Prefix Pattern
259; This defines which prefix Ampache will ignore when importing tags from
260; your music. You may add any prefix you want separating them with a |
261; DEFAULT: The|An|A|Die|Das|Ein|Eine|Les|Le|La
262catalog_prefix_pattern = "The|An|A|Die|Das|Ein|Eine|Les|Le|La"
263
264; Catalog disable
265; This defines if catalog can be disabled without removing database entries
266; WARNING: this increase sensibly sql requests and slow down Ampache a lot
267; DEFAULT: false
268;catalog_disable = "false"
269
270; Delete from disk
271; This determines if catalog manager users can delete media from disk.
272; DEFAULT: false
273;delete_from_disk = "false"
274
275
276;#########################################################
277; Program Settings #
278;#########################################################
279
280; Downsample Remote
281; If this is set to true and access control is on any users who are not
282; coming from a defined 'network' ACL will be automatically downsampled
283; regardless of their preferences. Requires access_control to be enabled
284; DEFAULT: false
285;downsample_remote = "false"
286
287; Track User IPs
288; If this is enabled Ampache will log the IP of every completed login
289; it will store user, ip and time at one row per login. The results are
290; displayed in Admin --> Users
291; DEFAULT: false
292;track_user_ip = "false"
293
294; User IP Cardinality
295; This defines how many days worth of IP history Ampache will track
296; As it is one row per login on high volume sites you will want to
297; clear it every now and then.
298; DEFAULT: 42 days
299;user_ip_cardinality = "42"
300
301; Allow Zip Download
302; This setting allows/disallows using zlib to zip up an entire
303; playlist/album for download. Even if this is turned on you will
304; still need to enabled downloading for the specific user you
305; want to be able to use this function
306; DEFAULT: false
307;allow_zip_download = "false"
308
309; Allow Zip Types
310; This setting allows/disallows zip download of specific object types
311; If empty, all supported object types can be zipped.
312; Otherwise, only the given object list can be zipped.
313; POSSIBLE VALUES: artist, album, playlist, search, tmp_playlist
314; DEFAULT: none
315;allow_zip_types = "album"
316
317; File Zip Comment
318; This is an optional configuration option that adds a comment
319; to your zip files, this only applies if you've got allow_zip_downloads
320; DEFAULT: Ampache - Zip Batch Download
321;file_zip_comment = "Ampache - Zip Batch Download"
322
323; Waveform
324; This settings tells Ampache to attempt to generate a waveform
325; for each song. It requires transcode and encode_args_wav settings.
326; You must also set tmp_dir_path in order for this to work
327; DEFAULT: false
328waveform = "true"
329
330; Waveform color
331; The waveform color.
332; DEFAULT: #FF0000
333waveform_color = "#FF9D00"
334
335; Waveform height
336; The waveform height.
337; DEFAULT: 32
338;waveform_height = 32
339
340; Waveform width
341; The waveform width.
342; DEFAULT: 400
343;waveform_width = 400
344
345; Temporary Directory Path
346; If Waveform is enabled this must be set to tell
347; Ampache which directory to save the temporary file to. Do not put a
348; trailing slash or this will not work.
349; DEFAULT: false
350;tmp_dir_path = "false"
351
352; This setting throttles a persons downloading to the specified
353; bytes per second. This is not a 100% guaranteed function, and
354; you should really use a server based rate limiter if you want
355; to do this correctly.
356; DEFAULT: off
357; VALUES: any whole number (in bytes per second)
358;throttle_download = 10
359
360; This determines if a preview image should be retrieved from video files
361; It requires encode_get_image transcode settings.
362; DEFAULT: false
363generate_video_preview = "true"
364
365; Un comment if don't want Ampache to follow symlinks
366; DEFAULT: false
367;no_symlinks = "false"
368
369; Use auth?
370; If this is set to "Yes" Ampache will require a valid
371; Username and password. If this is set to false then Ampache
372; will not ask you for a username and password. false is only
373; recommended for internal only instances
374; DEFAULT true
375use_auth = "true"
376
377; Default Auth Level
378; If use_auth is set to false then this option is used
379; to determine the permission level of the 'default' users
380; default is administrator. This setting only takes affect
381; if use_auth is false
382; POSSIBLE VALUES: user, admin, manager, guest
383; DEFAULT: guest
384default_auth_level = "guest"
385
386; 5 Star Ratings
387; This allows ratings for almost any object in Ampache
388; POSSIBLE VALUES: false true
389; DEFAULT: true
390ratings = "true"
391
392; Enable filtering on browse pages for artists and albums.
393; If you enable this setting the get_random and browse pages
394; will remove artists and albums that are <= to that rating
395; DEFAULT: false
396;rating_browse_filter = "false"
397
398; Set the rating that will be filtered
399; e.g. 2 will filter 1 and 2 star albums and artists
400; this setting must be set for the filter to work
401; DEFAULT: null
402;rating_browse_minimum_stars = 1
403
404; Set the amount of items Album/Video of the moment will display
405; This was previously hardcoded into the site
406; DEFAULT: 6
407;of_the_moment = 6
408
409; User flags/favorites
410; This allows user flags for almost any object in Ampache as favorite
411; POSSIBLE VALUES: false true
412; DEFAULT: true
413userflags = "true"
414
415; Direct play
416; This allows user to play directly a song or album
417; POSSIBLE VALUES: false true
418; DEFAULT: true
419directplay = "true"
420
421; Sociable
422; This turns on / off all of the "social" features of Ampache
423; default is on, but if you don't care and just want music
424; turn this off to disable all social features.
425; DEFAULT: true
426sociable = "true"
427
428; License
429; This turns on / off all licensing features on Ampache
430; DEFAULT: false
431licensing = "false"
432
433; This options will turn on/off Demo Mode
434; If Demo mode is on you can not play songs or update your catalog
435; in other words.. leave this commented out
436; DEFAULT: false
437;demo_mode = "false"
438
439; Caching
440; This turns the caching mechanisms on or off, due to a large number of
441; problems with people with very large catalogs and low memory settings
442; this is off by default as it does significantly increase the memory
443; requirements on larger catalogs. If you have the memory this can create
444; a 2-3x speed improvement.
445; DEFAULT: false
446;memory_cache = "false"
447
448; Memory Limit
449; This defines the "Min" memory limit for PHP if your php.ini
450; has a lower value set Ampache will set it up to this. If you
451; set it below 16MB getid3() will not work!
452; DEFAULT: 32
453;memory_limit = 32
454
455; Album Art Preferred Filename
456; Specify a filename to look for if you always give the same filename
457; i.e. "folder.jpg" Ampache currently only supports jpg/gif and png
458; Especially useful if you have a front and a back image in a folder
459; comment out if Ampache should search for any jpg, gif or png
460; DEFAULT: folder.jpg
461album_art_preferred_filename = "cover.jpg"
462
463; Album Art Store on Disk
464; This defines if arts should be stored on disk instead of database.
465; DEFAULT: false
466;album_art_store_disk = "false"
467
468; Local Metadata Directory
469; This define a local metadata directory with write access where to store
470; heavy data if enabled (album arts, ...)
471; DEFAULT: none
472;local_metadata_dir = "/metadata"
473
474; Maximal upload size
475; Specify the maximal allowed upload size for images, in bytes.
476; DEFAULT: 1048576
477;max_upload_size = 1048576
478
479; Album Art Minimum Width
480; Specify the minimum width for arts (in pixel).
481; DEFAULT: none
482;album_art_min_width = 100
483
484; Album Art Maximum Width
485; Specify the maximum width for arts (in pixel).
486; DEFAULT: none
487;album_art_max_width = 1024
488
489; Album Art Minimum Height
490; Specify the minimum height for arts (in pixel).
491; DEFAULT: none
492;album_art_min_height = 100
493
494; Album Art Maximum Height
495; Specify the maximum height for arts (in pixel).
496; DEFAULT: none
497;album_art_max_height = 1024
498
499; Resize Images * Requires PHP-GD *
500; Set this to true if you want Ampache to resize the Album
501; art on the fly, this increases load time and CPU usage
502; and also requires the PHP-GD library. This is very useful
503; If you have high-quality album art and a small upload cap
504; DEFAULT: false
505resize_images = "true"
506
507; Playlist Cover Art
508; Set this to true if you want Ampache to generate
509; cover art for playlists automatically based on
510; the content.
511; DEFAULT: false
512playlist_art = "true"
513
514; Art Gather Order
515; Simply arrange the following in the order you would like
516; Ampache to search. If you want to disable one of the search
517; methods simply leave it out. DB should be left as the first
518; method unless you want it to overwrite what's already in the
519; database
520; POSSIBLE VALUES (builtins): db tags folder lastfm musicbrainz google
521; POSSIBLE VALUES (plugins): Amazon,TheAudioDb,Tmdb,Omdb,Flickr
522; DEFAULT: db,tags,folder,musicbrainz,lastfm,google
523art_order = "db,tags,folder,musicbrainz,lastfm,google"
524
525; Recommendations
526; Set this to true to enable display of similar artists or albums
527; while browsing. Requires Last.FM.
528; DEFAULT: false
529;show_similar = "false"
530
531; Concerts
532; Set this to true to enable display of artist concerts
533; Requires Last.FM.
534; DEFAULT: false
535;show_concerts = "false"
536
537; Last.FM API Key
538; Set this to your Last.FM api key to actually use Last.FM for
539; recommendations and metadata.
540lastfm_api_key = "d5df942424c71b754e54ce1832505ae2"
541
542; Last.FM API secret
543; Set this to your Last.FM api secret to actually use Last.FM for
544; scrobbling.
545lastfm_api_secret = ""
546
547; Wanted
548; Set this to true to enable display missing albums and the
549; possibility for users to mark it as wanted.
550; DEFAULT: false
551wanted = "true"
552
553; Wanted types
554; Set the allowed types of wanted releases (album,compilation,single,ep,live,remix,promotion,official)
555; DEFAULT: album,official
556wanted_types = "album,official"
557
558; Wanted Auto Accept
559; Mark wanted requests as accepted by default (no content manager agreement required)
560; DEFAULT: false
561;wanted_auto_accept = "false"
562
563; EchoNest API key
564; EchoNest provides several music services. Currently used for missing song 30 seconds preview.
565;echonest_api_key = ""
566
567; Labels
568; Use labels to browse artists per label membership.
569; DEFAULT: false
570;label = "false"
571
572; Broadcasts
573; Allow users to broadcast music.
574; This feature requires advanced server configuration, please take a look on the wiki for more information.
575; DEFAULT: false
576;broadcast = "false"
577
578; Channels
579; Set this to true to enable channels and the
580; possibility for users to create channels from playlists
581; DEFAULT: true
582channel = "true"
583
584; Live Streams
585; Set this to true to enable live streams (radio) and the
586; possibility for users to add new live streams.
587; DEFAULT: true
588live_stream = "true"
589
590; Podcasts
591; Set this to true to enable podcasts and the
592; possibility for admins to subscribe to new podcasts.
593; DEFAULT: false
594;podcast = "false"
595
596; Web Socket address
597; Declare the web socket server address
598; DEFAULT: determined automatically
599;websocket_address = "ws://localhost:8100"
600
601; Refresh Limit
602; This defines the default refresh limit in seconds for
603; pages with dynamic content, such as now playing
604; DEFAULT: 60
605; Possible Values: Int > 5
606refresh_limit = "60"
607
608; Embedded Now Playing Page
609; Set this to true to enable the embedded now playing page (now_playing.php).
610; This page allows for embedding a now playing badge into a stream
611; or status page. Use with the parameter 'user_id' to filter by a
612; specific user. This page is like rss in that it doesn't require a
613; login to view.
614; DEFAULT: false
615;use_now_playing_embedded = "false"
616
617; Now Playing Refresh Limit
618; This defines the refresh limit in seconds for the
619; now playing embedded page. This (now_playing.php) is not
620; part of the normal application and is designed to be
621; embedded in another app, like a stream or status page.
622; If this value is not valid, automatic refresh will be disabled.
623; DEFAULT: -1
624; Possible Values; Int > 1
625;now_playing_refresh_limit = "-1"
626
627; Now Playing Custom CSS
628; This defines the custom css file for the now playing embedded
629; page. This (now_playing.php) is not part of the normal
630; application and is designed to be embedded in another app, like
631; a stream or status page.
632; If this value is not set, no CSS will be used. Custom CSS can
633; still be applied in the other application, like OBS.
634; DEFAULT: Not enabled
635;now_playing_css_file = "templates/now-playing.css"
636
637; Footer Statistics
638; This defines whether statistics (Queries, Cache Hits, Load Time)
639; are shown in the page footer.
640; DEFAULT: true
641; Possible values: true, false
642show_footer_statistics = "true"
643
644; RSS Feeds
645; Set this to true to enable rss feeds.
646; (latest albums, shouts, albums of artist, ...)
647; use_rss = false (values true | false)
648;DEFAULT: use_rss = false
649;use_rss = "false"
650
651; This setting allows themes to overwrite PHP template files. This can be really
652; dangerous. Do this only if you trust every theme in your themes/ directory.
653; DEFAULT: false
654;allow_php_themes = "false"
655
656
657;#########################################################
658; Debugging #
659;#########################################################
660
661; Debug
662; If this is enabled Ampache will write debugging information to the log file
663; DEFAULT: false
664;debug = "false"
665
666; Debug Level
667; This should always be set in conjunction with the
668; debug option, it defines how prolific you want the
669; debugging in Ampache to be. values are 1-5.
670; 1 == Basic Errors
671; 2 == Errors + Failures (login attempts etc.)
672; 3 == Full Error Information
673; 4 == General Information
674; 5 == Full Information (cataloging progress etc.)
675; DEFAULT: 5
676debug_level = "5"
677
678; Path to Log File
679; This defines where you want Ampache to log events to
680; this will only happen if debug is turned on. Do not
681; include trailing slash. You will need to make sure that
682; the specified directory exists and your HTTP server has
683; write access.
684; DEFAULT: none
685;log_path = "/var/log/ampache"
686
687; Log filename pattern
688; This defines where the log file name pattern
689; %name.%Y%m%d.log will create a different log file every day.
690; DEFAULT: %name.%Y%m%d.log
691log_filename = "%name.%Y%m%d.log"
692
693
694;#########################################################
695; Encoding Settings #
696;#########################################################
697
698; Charset of generated HTML pages
699; Default of UTF-8 should work for most people
700; DEFAULT: UTF-8
701site_charset = "UTF-8"
702
703; Locale Charset
704; Local charset (mainly for file operations) if different
705; from site_charset.
706; This is disabled by default, enable only if needed
707; (for Windows please set lc_charset to ISO8859-1)
708; DEFAULT: ISO8859-1
709;lc_charset = "ISO8859-1"
710
711; Multibyte
712; See http://php.net/manual/mbstring.supported-encodings.php
713; If you want ID3v1 encoding detection to work, you should uncomment this line
714; so that the ordering is sane.
715; DEFAULT: auto
716;mb_detect_order = "ASCII,UTF-8,EUC-JP,ISO-2022-JP,SJIS,JIS"
717
718
719;#########################################################
720; Custom actions (optional) #
721;#########################################################
722
723; Your custom play action title
724;custom_play_action_title_0 = ""
725; Your custom play action icon name (stored as /images/icon_[your_image].png)
726;custom_play_action_icon_0 = ""
727; Your custom action script, where:
728; - %f: the media file path
729; - %c: the excepted codec target (mp3, ogg, ...)
730; - %a: the artist name
731; - %A: the album name
732; - %t: the song title
733;custom_play_action_run_0 = ""
734
735; Example for Karaoke playing
736;custom_play_action_title_0 = "Karaoke"
737;custom_play_action_icon_0 = "microphone"
738;custom_play_action_run_0 = "sox \"%f\" -p oops | ffmpeg -i pipe:0 -f %c pipe:1"
739
740
741;#########################################################
742; LDAP login info (optional) #
743;#########################################################
744
745; LDAP server URL (required)
746; DEFAULT: none
747;ldap_url = "ldap://localhost/"
748;ldap_url = "ldaps://localhost/"
749
750; LDAP credentials (optional)
751; DEFAULT: none
752;ldap_username = ""
753;ldap_password = ""
754
755; LDAP Base DN for the search (required)
756; DEFAULT: none
757;ldap_search_dn = "ou=People,dc=yoursubdomain,dc=yourdomain,dc=yourtld"
758
759; LDAP objectClass (required)
760; DEFAULT: none
761;ldap_objectclass = "posixAccount" ; OpenLDAP
762;ldap_objectclass = "organizationalPerson" ; Microsoft Active Directory
763
764; LDAP filter for search (required)
765; DEFAULT: none
766;ldap_filter = "(uid=%v)" ; OpenLDAP
767;ldap_filter = "(sAMAccountName=%v)" ; Microsoft Active Directory
768
769; Require that the user is in a specific group (optional)
770; DEFAULT: none
771;ldap_require_group = "cn=yourgroup,ou=yourorg,dc=yoursubdomain,dc=yourdomain,dc=yourtld"
772
773; LDAP name field
774; DEFAULT = "cn"
775;ldap_name_field = "cn"
776;ldap_name_field = "displayName"
777
778; LDAP email field
779; DEFAULT = "mail"
780;ldap_email_field = "mail"
781
782; LDAP avatar field
783; DEFAULT: none
784;ldap_avatar_field = "jpegPhoto"
785
786; LDAP avatar mime type
787; DEFAULT: image/jpeg
788;ldap_avatar_mime = "image/jpeg"
789
790; LDAP protocol version to use
791; DEFAULT: 3
792;ldap_protocol_version = 3
793
794; LDAP StartTLS
795; DEFAULT: false
796;ldap_start_tls = "false"
797
798; LDAP member attribute name.
799; That's the name of the attribute of the group that will contain
800; the usernames.
801; DEFAULT: member
802;ldap_member_attribute = "member"
803;ldap_member_attribute = "memberuid"
804
805
806
807;#########################################################
808; OpenID login info (optional) #
809;#########################################################
810
811; Requires specific OpenID Provider Authentication Policy
812; DEFAULT: none
813; VALUES: PAPE_AUTH_MULTI_FACTOR_PHYSICAL,PAPE_AUTH_MULTI_FACTOR,PAPE_AUTH_PHISHING_RESISTANT
814;openid_required_pape = ""
815
816
817;#########################################################
818; Public Registration settings, defaults to disabled #
819;#########################################################
820
821; This setting will silently create an Ampache account
822; for anyone who can login using LDAP (or any other login
823; extension). The default is to create new users as guests
824; see auto_user config option if you would like to change this
825; DEFAULT: false
826;auto_create = "false"
827
828; This setting will silently update an Ampache account's
829; information for anyone who can login using LDAP
830; (or any other login extension).
831; DEFAULT: false
832;external_auto_update = "false"
833
834; This setting turns on/off public registration. It is
835; recommended you leave this off, as it will allow anyone to
836; sign up for an account on your server.
837; REMEMBER: don't forget to set the mail from address further down in the config.
838; DEFAULT: false
839allow_public_registration = "false"
840
841; Require Captcha Text on Image confirmation
842; Turning this on requires the user to correctly
843; type in the letters in the image created by Captcha
844; Default is off because its very hard to detect if it failed
845; to draw, or they failed to enter it.
846; DEFAULT: false
847;captcha_public_reg = "false"
848
849; This setting turns on/off admin notification of registration.
850; DEFAULT: false
851;admin_notify_reg = "false"
852
853; This setting determines whether the user will be created as a disabled user.
854; If this is on, an administrator will need to manually enable the account
855; before it's usable.
856; DEFAULT: false
857;admin_enable_required = "false"
858
859; This setting will allow all registrants/ldap/http users
860; to be auto-approved as a user. By default, they will be
861; added as a guest and must be promoted by the admin.
862; POSSIBLE VALUES: guest, user, admin
863; DEFAULT: guest
864;auto_user = "guest"
865
866; This will display the user agreement when registering
867; For agreement text, edit config/registration_agreement.php
868; User will need to accept the agreement before they can register
869; DEFAULT: false
870;user_agreement = "false"
871
872; This disable email confirmation when registering.
873; DEFAULT: false
874;user_no_email_confirm = "false"
875
876; This will display the cookie disclaimer (EU Cookie Law)
877; DEFAULT: false
878cookie_disclaimer = "false"
879
880; The fields that will be shown on Registration page
881; If a user wants to register.
882; Username and email fields are forced.
883; POSSIBLE VALUES: fullname,website,state,city
884; DEFAULT: "fullname,website"
885registration_display_fields = "fullname,website"
886
887; The fields that will be mandatory
888; This controls which fields are mandatory for registration.
889; Username and email fields are forced mandatory.
890; POSSIBLE VALUES: fullname,website,state,city
891; DEFAULT: fullname
892registration_mandatory_fields = "fullname"
893
894
895;########################################################
896; These options control the dynamic downsampling based #
897; on current usage #
898; *Note* Transcoding must be enabled and working #
899;########################################################
900
901; Attempt to optimize bandwidth by dynamically lowering the bit rate of new
902; streams. Since the bit rate is only adjusted at the beginning of a song, the
903; actual cumulative bitrate for concurrent streams can be up to around
904; double the configured value. It also only applies to streams that are
905; transcoded.
906; DEFAULT: none
907;max_bit_rate = 576
908
909; New dynamically downsampled streams will be denied if they are forced below
910; this value.
911; DEFAULT: 8
912;min_bit_rate = 48
913
914;######################################################
915; These are commands used to transcode non-streaming
916; formats to the target file type for streaming.
917; This can be useful in re-encoding file types that don't stream
918; very well, or if your player doesn't support some file types.
919;
920; 'Downsampling' will also use these commands.
921;
922; To state the bleeding obvious, any programs referenced in the transcode
923; commands must be installed, in the web server's search path (or referenced
924; by their full path), and executable by the web server.
925
926; Input type selection
927; TYPE is the extension. 'allowed' certifies that transcoding works properly for
928; this input format. 'required' further forbids the direct streaming of a format
929; (e.g. if you store everything in FLAC, but don't want to ever stream that.)
930; transcode_TYPE = {allowed|required|false}
931; DEFAULT: false
932;;; Audio
933transcode_m4a = "required"
934transcode_flac = "required"
935transcode_mpc = "required"
936transcode_ogg = "allowed"
937;transcode_oga = required
938transcode_wav = "required"
939;transcode_wma = required
940;transcode_aif = required
941;transcode_aiff = required
942;transcode_ape = required
943;transcode_shn = required
944;transcode_mp3 = allowed
945;;; Video
946transcode_avi = "allowed"
947transcode_mkv = "allowed"
948transcode_mpg = "allowed"
949;transcode_mpeg = allowed
950;transcode_m4v = allowed
951;transcode_mp4 = allowed
952;transcode_mov = allowed
953;transcode_wmv = allowed
954;transcode_ogv = allowed
955;transcode_divx = allowed
956;transcode_m2ts = allowed
957;transcode_webm = allowed
958
959; Default audio output format
960; DEFAULT: none
961encode_target = "mp3"
962
963; Default video output format
964; DEFAULT: none
965encode_video_target = "webm"
966
967; Override the default output format on a per-type basis, for example,
968; to stream lossless encoded files in lossy formats.
969; encode_target_TYPE = TYPE
970; DEFAULT: none
971encode_target_flac = "opus"
972
973; Override the default TYPE transcoding behavior on a per-player basis, for example,
974; to stream lossless using the api and lossy using the web interface.
975; transcode_player_PLAYER_TYPE = TYPE
976; Valid PLAYER is: webplayer, api
977; DEFAULT: none
978;transcode_player_webplayer_m4a = required
979;transcode_player_webplayer_flac = required
980;transcode_player_webplayer_mpc = required
981
982; Override the default output format on a per-player basis
983; encode_player_PLAYER_target = TYPE
984; Valid PLAYER is: webplayer, api
985; DEFAULT: none
986;encode_player_webplayer_target = mp3
987;encode_player_api_target = mp3
988
989; Allow clients to override transcode settings (output type, bitrate, codec ...)
990; DEFAULT: true
991transcode_player_customize = "true"
992
993; Command configuration. Substitutions will be made as follows:
994; %FILE% => filename
995; %BITRATE% => target bit rate (as chosen by the admin or users in the
996; preferences, if transcode_player_customize = "true")
997; You can do fancy things like VBR, but consider whether the consequences are
998; acceptable in your environment.
999
1000; Master transcode command
1001; transcode_cmd should be a single command that supports multiple file types,
1002; such as ffmpeg or avconv. It's still possible to make a configuration that's
1003; equivalent to the old default, but if you find that necessary you should be
1004; clever enough to figure out how on your own.
1005; DEFAULT: none
1006transcode_cmd = "ffmpeg"
1007;transcode_cmd = "avconv"
1008;transcode_cmd = "/usr/bin/neatokeen"
1009
1010; Transcode input file argument
1011transcode_input = "-i %FILE%"
1012
1013; Specific transcode commands
1014; It shouldn't be necessary in most cases, but you can override the transcode
1015; command for specific source formats. It still needs to accept the
1016; encoding arguments, so the easiest approach is to use your normal command as
1017; a clearing-house.
1018; transcode_cmd_TYPE = TRANSCODE_CMD
1019;transcode_cmd_mid = "timidity -Or -o – %FILE% | ffmpeg -f s16le -i pipe:0"
1020
1021; Encoding arguments
1022; For each output format, you should provide the necessary arguments for
1023; your transcode_cmd.
1024; encode_args_TYPE = TRANSCODE_CMD_ARGS
1025encode_args_mp3 = "-vn -b:a %BITRATE%K -c:a libmp3lame -f mp3 pipe:1"
1026encode_args_ogg = "-vn -b:a %BITRATE%K -c:a libvorbis -f ogg pipe:1"
1027encode_args_opus = "-vn -b:a %BITRATE%K -c:a libopus -compression_level 10 -vsync 2 -f ogg pipe:1"
1028encode_args_m4a = "-vn -b:a %BITRATE%K -c:a libfdk_aac -f adts pipe:1"
1029encode_args_wav = "-vn -b:a %BITRATE%K -c:a pcm_s16le -f wav pipe:1"
1030encode_args_flv = "-b:a %BITRATE%K -ar 44100 -ac 2 -v 0 -f flv -c:v libx264 -preset superfast -threads 0 pipe:1"
1031encode_args_webm = "-q %QUALITY% -f webm -c:v libvpx -maxrate %MAXBITRATE%k -preset superfast -threads 0 pipe:1"
1032encode_args_ts = "-q %QUALITY% -s %RESOLUTION% -f mpegts -c:v libx264 -c:a libmp3lame -maxrate %MAXBITRATE%k -preset superfast -threads 0 pipe:1"
1033encode_args_ogv = "-codec:v libtheora -qscale:v 7 -codec:a libvorbis -qscale:a 5 -f ogg pipe:1"
1034
1035; Encoding arguments to retrieve an image from a single frame
1036encode_get_image = "-ss %TIME% -f image2 -vframes 1 pipe:1"
1037
1038; Encoding argument to encrust subtitle
1039encode_srt = "-vf \"subtitles='%SRTFILE%'\""
1040
1041; Encode segment frame argument
1042encode_ss_frame = "-ss %TIME%"
1043
1044; Encode segment duration argument
1045encode_ss_duration = "-t %DURATION%"
1046
1047; Use segments for transcoding or send it all in one go.
1048; Useful if you are having issues streaming the full track.
1049; You can set it for all streams or a specific player
1050; POSSIBLE VALUES: true webplayer api
1051; DEFAULT = false
1052;send_full_stream = "webplayer"
1053
1054;#########################################################
1055; Proxy Settings (optional) #
1056;#########################################################
1057
1058; If Ampache is behind an http proxy, specify the hostname or IP address
1059; port, proxy username, and proxy password here.
1060; DEFAULT: not in use
1061;proxy_host = "192.168.0.1"
1062;proxy_port = "8080"
1063;proxy_user = ""
1064;proxy_pass = ""
1065
1066; If Ampache is behind an https reverse proxy, force use HTTPS protocol.
1067;Default: false
1068;force_ssl = "true"
1069
1070
1071;#########################################################
1072; Mail Settings #
1073;#########################################################
1074
1075; Enable or disable email server features
1076; otherwise, you can reset your password
1077; and never receive an email with the new one
1078; Default: false
1079;mail_enable = "false"
1080
1081; Method used to send mail
1082; POSSIBLE VALUES: smtp sendmail php
1083; DEFAULT: php
1084;mail_type = "php"
1085
1086; Mail domain.
1087; DEFAULT: example.com
1088;mail_domain = "example.com"
1089
1090; This will be combined with mail_domain and used as the source address for
1091; emails generated by Ampache. For example, setting this to 'me' will set the
1092; sender to 'me@example.com'.
1093; DEFAULT: info
1094;mail_user = "info"
1095
1096; A name to go with the email address.
1097; DEFAULT: Ampache
1098;mail_name = "Ampache"
1099
1100; How strictly email addresses should be checked.
1101; easy does a regex match, strict actually performs some SMTP transactions
1102; to see if we can send to this address.
1103; POSSIBLE VALUES: strict easy none
1104; DEFAULT: strict
1105mail_check = "none"
1106
1107
1108;#########################################################
1109; sendmail Settings #
1110;#########################################################
1111
1112;DEFAULT: /usr/sbin/sendmail
1113;sendmail_path = "/usr/sbin/sendmail"
1114
1115
1116;#########################################################
1117; SMTP Settings #
1118;#########################################################
1119
1120; Mail server (hostname or IP address)
1121; DEFAULT: localhost
1122;mail_host = "localhost"
1123
1124; SMTP port
1125; DEFAULT: 25
1126;mail_port = 25
1127
1128; Secure SMTP
1129; POSSIBLE VALUES: ssl tls
1130; DEFAULT: none
1131;mail_secure_smtp = tls
1132
1133; Enable SMTP authentication
1134; DEFAULT: false
1135;mail_auth = "true"
1136
1137; SMTP Username
1138; your mail auth username.
1139;mail_auth_user = ""
1140
1141; SMTP Password
1142; your mail auth password.
1143;mail_auth_pass = ""
1144
1145;#############################
1146; Abbreviation Filter #
1147;#############################
1148; For file name parsing. Any unnecessary abbreviations in file names can be removed during parsing
1149; by adding them to the list below so that they will be removed during the parsing process.
1150common_abbr = "divx,xvid,dvdrip,hdtv,lol,axxo,repack,xor,pdtv,real,vtv,caph,2hd,proper,fqm,uncut,topaz,tvt,notv,fpn,fov,orenji,0tv,omicron,dsr,ws,sys,crimson,wat,hiqt,internal,brrip,boheme,vost,vostfr,fastsub,addiction,x264,LOL,720p,1080p,YIFY,evolve,fihtv,first,bokutox,bluray,tvboom,info"