New: Add application URL to host configuration settings

(cherry picked from commit 762042ba97c2ae689cee32d8e66a458f6d7a8adc)
pull/1650/head
Devin Buhl 2 years ago committed by Bogdan
parent 1a5e41d831
commit 202836110e

@ -21,6 +21,7 @@ function HostSettings(props) {
port, port,
urlBase, urlBase,
instanceName, instanceName,
applicationUrl,
enableSsl, enableSsl,
sslPort, sslPort,
sslCertPath, sslCertPath,
@ -89,6 +90,21 @@ function HostSettings(props) {
/> />
</FormGroup> </FormGroup>
<FormGroup
advancedSettings={advancedSettings}
isAdvanced={true}
>
<FormLabel>{translate('ApplicationURL')}</FormLabel>
<FormInputGroup
type={inputTypes.TEXT}
name="applicationUrl"
helpText={translate('ApplicationUrlHelpText')}
onChange={onInputChange}
{...applicationUrl}
/>
</FormGroup>
<FormGroup <FormGroup
advancedSettings={advancedSettings} advancedSettings={advancedSettings}
isAdvanced={true} isAdvanced={true}

@ -182,6 +182,8 @@ namespace NzbDrone.Core.Configuration
public CertificateValidationType CertificateValidation => public CertificateValidationType CertificateValidation =>
GetValueEnum("CertificateValidation", CertificateValidationType.Enabled); GetValueEnum("CertificateValidation", CertificateValidationType.Enabled);
public string ApplicationUrl => GetValue("ApplicationUrl", string.Empty);
private string GetValue(string key) private string GetValue(string key)
{ {
return GetValue(key, string.Empty); return GetValue(key, string.Empty);

@ -55,5 +55,6 @@ namespace NzbDrone.Core.Configuration
bool LogIndexerResponse { get; set; } bool LogIndexerResponse { get; set; }
CertificateValidationType CertificateValidation { get; } CertificateValidationType CertificateValidation { get; }
string ApplicationUrl { get; }
} }
} }

@ -34,6 +34,8 @@
"ApplicationLongTermStatusCheckSingleClientMessage": "Applications unavailable due to failures for more than 6 hours: {0}", "ApplicationLongTermStatusCheckSingleClientMessage": "Applications unavailable due to failures for more than 6 hours: {0}",
"ApplicationStatusCheckAllClientMessage": "All applications are unavailable due to failures", "ApplicationStatusCheckAllClientMessage": "All applications are unavailable due to failures",
"ApplicationStatusCheckSingleClientMessage": "Applications unavailable due to failures: {0}", "ApplicationStatusCheckSingleClientMessage": "Applications unavailable due to failures: {0}",
"ApplicationURL": "Application URL",
"ApplicationUrlHelpText": "This application's external URL including http(s)://, port and URL base",
"Applications": "Applications", "Applications": "Applications",
"Apply": "Apply", "Apply": "Apply",
"ApplyTags": "Apply Tags", "ApplyTags": "Apply Tags",
@ -508,4 +510,4 @@
"Yes": "Yes", "Yes": "Yes",
"YesCancel": "Yes, Cancel", "YesCancel": "Yes, Cancel",
"Yesterday": "Yesterday" "Yesterday": "Yesterday"
} }

@ -27,6 +27,7 @@ namespace Prowlarr.Api.V1.Config
public string SslCertPassword { get; set; } public string SslCertPassword { get; set; }
public string UrlBase { get; set; } public string UrlBase { get; set; }
public string InstanceName { get; set; } public string InstanceName { get; set; }
public string ApplicationUrl { get; set; }
public bool UpdateAutomatically { get; set; } public bool UpdateAutomatically { get; set; }
public UpdateMechanism UpdateMechanism { get; set; } public UpdateMechanism UpdateMechanism { get; set; }
public string UpdateScriptPath { get; set; } public string UpdateScriptPath { get; set; }
@ -86,6 +87,7 @@ namespace Prowlarr.Api.V1.Config
BackupFolder = configService.BackupFolder, BackupFolder = configService.BackupFolder,
BackupInterval = configService.BackupInterval, BackupInterval = configService.BackupInterval,
BackupRetention = configService.BackupRetention, BackupRetention = configService.BackupRetention,
ApplicationUrl = configService.ApplicationUrl,
HistoryCleanupDays = configService.HistoryCleanupDays HistoryCleanupDays = configService.HistoryCleanupDays
}; };
} }

Loading…
Cancel
Save