AzuraCast/app/config/forms/settings.conf.php

55 lines
1.8 KiB
PHP
Raw Normal View History

<?php
/**
* Settings form.
*/
$base_url_parts = parse_url($_SERVER['HTTP_HOST']);
$base_url_default = $base_url_parts['host'];
return [
/**
* Form Configuration
*/
'form' => [
'method' => 'post',
'groups' => [
'system' => [
'legend' => _('System Settings'),
'elements' => [
'base_url' => ['text', [
'label' => _('Site Base URL'),
'description' => _('The base URL where this service is located. For local testing, use "localhost". Otherwise, use either the external IP address or fully-qualified domain name pointing to the server.'),
'default' => $base_url_default,
]],
'use_radio_proxy' => ['radio', [
'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).'),
'options' => [
0 => 'No',
1 => 'Yes',
],
'default' => 0,
]],
],
],
'submit' => [
'legend' => '',
'elements' => [
'submit' => ['submit', [
'type' => 'submit',
'label' => _('Save Changes'),
'helper' => 'formButton',
'class' => 'btn btn-lg btn-primary',
]],
],
],
],
],
];