diff --git a/frontend/src/Settings/General/HostSettings.js b/frontend/src/Settings/General/HostSettings.js
index b864faad3..4736e9a01 100644
--- a/frontend/src/Settings/General/HostSettings.js
+++ b/frontend/src/Settings/General/HostSettings.js
@@ -21,6 +21,7 @@ function HostSettings(props) {
port,
urlBase,
instanceName,
+ applicationUrl,
enableSsl,
sslPort,
sslCertPath,
@@ -90,6 +91,21 @@ function HostSettings(props) {
/>
+
+ {translate('ApplicationURL')}
+
+
+
+
GetValueEnum("CertificateValidation", CertificateValidationType.Enabled);
+ public string ApplicationUrl => GetValue("ApplicationUrl", string.Empty);
+
private string GetValue(string key)
{
return GetValue(key, string.Empty);
diff --git a/src/NzbDrone.Core/Configuration/IConfigService.cs b/src/NzbDrone.Core/Configuration/IConfigService.cs
index c51b27722..c7252e5d7 100644
--- a/src/NzbDrone.Core/Configuration/IConfigService.cs
+++ b/src/NzbDrone.Core/Configuration/IConfigService.cs
@@ -104,5 +104,6 @@ public interface IConfigService
int BackupRetention { get; }
CertificateValidationType CertificateValidation { get; }
+ string ApplicationUrl { get; }
}
}
diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json
index ec02f86a0..3f096ced0 100644
--- a/src/NzbDrone.Core/Localization/Core/en.json
+++ b/src/NzbDrone.Core/Localization/Core/en.json
@@ -50,6 +50,8 @@
"ApiKey": "API Key",
"AppDataDirectory": "AppData directory",
"AppDataLocationHealthCheckMessage": "Updating will not be possible to prevent deleting AppData on Update",
+ "ApplicationURL": "Application URL",
+ "ApplicationUrlHelpText": "This application's external URL including http(s)://, port and URL base",
"Apply": "Apply",
"ApplyTags": "Apply Tags",
"ApplyTagsHelpTexts1": "How to apply tags to the selected movies",
diff --git a/src/Radarr.Api.V3/Config/HostConfigResource.cs b/src/Radarr.Api.V3/Config/HostConfigResource.cs
index 836eaf25d..d563df4f8 100644
--- a/src/Radarr.Api.V3/Config/HostConfigResource.cs
+++ b/src/Radarr.Api.V3/Config/HostConfigResource.cs
@@ -26,6 +26,7 @@ public class HostConfigResource : RestResource
public string SslCertPassword { get; set; }
public string UrlBase { get; set; }
public string InstanceName { get; set; }
+ public string ApplicationUrl { get; set; }
public bool UpdateAutomatically { get; set; }
public UpdateMechanism UpdateMechanism { get; set; }
public string UpdateScriptPath { get; set; }
@@ -82,7 +83,8 @@ public static HostConfigResource ToResource(this IConfigFileProvider model, ICon
CertificateValidation = configService.CertificateValidation,
BackupFolder = configService.BackupFolder,
BackupInterval = configService.BackupInterval,
- BackupRetention = configService.BackupRetention
+ BackupRetention = configService.BackupRetention,
+ ApplicationUrl = configService.ApplicationUrl
};
}
}