2015-05-22 09:13:52 +00:00
< ? php
2016-09-19 19:20:26 +00:00
return [
2018-02-01 11:49:40 +00:00
'groups' => [
2015-05-22 09:13:52 +00:00
2018-02-01 11:49:40 +00:00
'system' => [
'elements' => [
2017-05-21 04:27:34 +00:00
2018-10-06 02:06:48 +00:00
'base_url' => [
'text' ,
[
'label' => __ ( 'Site Base URL' ),
'description' => __ ( 'The base URL where this service is located. Use either the external IP address or fully-qualified domain name (if one exists) pointing to this server.' ),
'default' => $_SERVER [ 'HTTP_HOST' ],
'filter' => function ( $str ) {
return str_replace ([ 'http://' , 'https://' ], [ '' , '' ], trim ( $str ));
},
'required' => true ,
]
],
2018-02-01 11:49:40 +00:00
'instance_name' => [
'text' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'AzuraCast Instance Name' ),
'description' => __ ( 'This name will appear as a sub-header next to the AzuraCast logo, to help identify this server.' ),
2017-01-24 00:35:16 +00:00
],
2018-02-01 11:49:40 +00:00
],
2017-12-10 14:23:08 +00:00
2018-09-04 22:08:16 +00:00
'timezone' => [
'select' ,
[
'label' => __ ( 'System Default Time Zone' ),
'description' => __ ( 'For users who have not customized their time zone, all times displayed on the site will be based on this time zone.' ),
2018-11-12 16:59:15 +00:00
'options' => \Azura\Timezone :: fetchSelect (),
2018-09-04 22:08:16 +00:00
'default' => 'UTC' ,
],
],
2018-02-01 11:49:40 +00:00
'prefer_browser_url' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Prefer Browser URL (If Available)' ),
'description' => __ ( 'If this setting is set to "Yes", the browser URL will be used instead of the base URL when it\'s available. Set to "No" to always use the base URL.' ),
2018-05-17 09:02:46 +00:00
'choices' => [
2018-03-19 01:31:43 +00:00
0 => __ ( 'No' ),
1 => __ ( 'Yes' ),
2018-02-01 11:49:40 +00:00
],
'default' => 0 ,
]
],
2017-01-24 00:35:16 +00:00
2018-02-01 11:49:40 +00:00
'always_use_ssl' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Always Use HTTPS' ),
'description' => __ ( 'Set to "Yes" to always use "https://" secure URLs.' ),
2018-05-17 09:02:46 +00:00
'choices' => [
2018-03-19 01:31:43 +00:00
0 => __ ( 'No' ),
1 => __ ( 'Yes' ),
2018-02-01 11:49:40 +00:00
],
'default' => 0 ,
]
],
2016-12-25 18:07:25 +00:00
2018-02-01 11:49:40 +00:00
'use_radio_proxy' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Use Web Proxy for Radio' ),
'description' => __ ( 'By default, radio stations broadcast on their own ports (i.e. 8000). If you\'re using a service like CloudFlare or accessing your radio station by SSL, you should enable this feature, which routes all radio through the web ports (80 and 443).' ),
2018-05-17 09:02:46 +00:00
'choices' => [
2018-03-19 01:31:43 +00:00
0 => __ ( 'No' ),
1 => __ ( 'Yes' ),
2018-02-01 11:49:40 +00:00
],
'default' => 0 ,
]
2016-09-19 19:20:26 +00:00
],
2018-02-01 11:49:40 +00:00
2018-08-26 02:53:28 +00:00
'history_keep_days' => [
'radio' ,
[
'label' => __ ( 'Days of Playback History to Keep' ),
'description' => __ ( 'Set longer to preserve more playback history for stations. Set shorter to save disk space.' ),
'choices' => [
14 => __ ( 'Last 14 Days' ),
30 => __ ( 'Last 30 Days' ),
60 => __ ( 'Last 60 Days' ),
365 => __ ( 'Last Year' ),
730 => __ ( 'Last 2 Years' ),
0 => __ ( 'Indefinitely' ),
],
'default' => \App\Entity\SongHistory :: DEFAULT_DAYS_TO_KEEP ,
]
2018-09-04 22:08:16 +00:00
],
2018-08-26 02:53:28 +00:00
2016-09-19 19:20:26 +00:00
],
2018-02-01 11:49:40 +00:00
],
2016-09-19 19:20:26 +00:00
2018-05-26 21:26:34 +00:00
'privacy' => [
'legend' => __ ( 'Privacy Controls' ),
'description' => __ ( 'AzuraCast does not send your data to any external server. You can control how much data AzuraCast logs about your listeners here.' ),
'elements' => [
'analytics' => [
'radio' ,
[
'label' => __ ( 'Analytics Collection' ),
'description' => __ ( 'Aggregate listener statistics are used to show station reports across the system. IP-based listener statistics are used to view live listener tracking and may be required for royalty reports.' ),
'choices' => [
2018-08-04 22:05:14 +00:00
\App\Entity\Analytics :: LEVEL_ALL => __ ( '<b>Full:</b> Collect aggregate listener statistics and IP-based listener statistics' ),
\App\Entity\Analytics :: LEVEL_NO_IP => __ ( '<b>Limited:</b> Only collect aggregate listener statistics' ),
\App\Entity\Analytics :: LEVEL_NONE => __ ( '<b>None:</b> Do not collect any listener analytics' ),
2018-05-26 21:26:34 +00:00
],
2018-08-04 22:05:14 +00:00
'default' => \App\Entity\Analytics :: LEVEL_ALL ,
2018-05-26 21:26:34 +00:00
]
2018-08-26 02:53:28 +00:00
],
2018-05-26 21:26:34 +00:00
],
],
2018-02-01 11:49:40 +00:00
'submit' => [
'legend' => '' ,
'elements' => [
'submit' => [
'submit' ,
[
'type' => 'submit' ,
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Save Changes' ),
2018-02-01 11:49:40 +00:00
'class' => 'btn btn-lg btn-primary' ,
]
2016-09-19 19:20:26 +00:00
],
],
],
],
2018-08-04 22:05:14 +00:00
];