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