diff --git a/src/controllers/networking.js b/src/controllers/networking.js index 669448892..c0367a813 100644 --- a/src/controllers/networking.js +++ b/src/controllers/networking.js @@ -52,6 +52,7 @@ define(["loading", "libraryMenu", "globalize", "emby-checkbox", "emby-select"], config.HttpServerPortNumber = form.querySelector("#txtPortNumber").value; config.EnableUPnP = enableUpnp; config.WanDdns = form.querySelector("#txtDdns").value; + config.BaseUrl = form.querySelector("#txtBaseUrl").value; config.EnableRemoteAccess = form.querySelector("#chkRemoteAccess").checked; config.CertificatePath = form.querySelector("#txtCertificatePath").value || null; config.CertificatePassword = form.querySelector("#txtCertPassword").value || null; @@ -111,6 +112,7 @@ define(["loading", "libraryMenu", "globalize", "emby-checkbox", "emby-select"], config.IsBehindProxy ? selectHttpsMode.value = "proxy" : config.RequireHttps ? selectHttpsMode.value = "required" : config.EnableHttps ? selectHttpsMode.value = "enabled" : selectHttpsMode.value = "disabled"; page.querySelector("#txtHttpsPort").value = config.HttpsPortNumber; page.querySelector("#txtDdns").value = config.WanDdns || ""; + page.querySelector("#txtBaseUrl").value = config.BaseUrl || ""; var txtCertificatePath = page.querySelector("#txtCertificatePath"); txtCertificatePath.value = config.CertificatePath || ""; page.querySelector("#txtCertPassword").value = config.CertificatePassword || ""; diff --git a/src/networking.html b/src/networking.html index 4ea44cee2..e55840482 100644 --- a/src/networking.html +++ b/src/networking.html @@ -56,6 +56,11 @@
${LabelExternalDDNSHelp}
+
+ +
${LabelBaseUrlHelp}
+
+
diff --git a/src/strings/en-us.json b/src/strings/en-us.json index 2c7b98167..acfe3832b 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -632,6 +632,8 @@ "LabelEveryXMinutes": "Every:", "LabelExternalDDNS": "External domain:", "LabelExternalDDNSHelp": "If you have a dynamic DNS enter it here for clients to use when connecting remotely. This field is required when used with a custom SSL certificate. Example: mydomain.com.", + "LabelBaseUrl": "Base URL:", + "LabelBaseUrlHelp": "You can add a custom subdirectory here to access the server from a more unique URL.", "LabelExtractChaptersDuringLibraryScan": "Extract chapter images during the library scan", "LabelExtractChaptersDuringLibraryScanHelp": "If enabled, chapter images will be extracted when videos are imported during the library scan. If disabled they will be extracted during the chapter images scheduled task, allowing the regular library scan to complete faster.", "LabelFailed": "Failed",