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