Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Bugfix/base url in docker (#1901)

Andyc8a16a43702d
diff --git a/API/Startup.cs b/API/Startup.cs
index 8ed57f227..b023d6f51 100644
--- a/API/Startup.cs
+++ b/API/Startup.cs
@@ -391,7 +391,6 @@ public class Startup
{
try
{
- if (new OsInfo(Array.Empty<IOsVersionAdapter>()).IsDocker) return;
var htmlDoc = new HtmlDocument();
var indexHtmlPath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "index.html");
htmlDoc.Load(indexHtmlPath);
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4d81e02a9..238e54542 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -13,7 +13,7 @@ Setup guides, FAQ, the more information we have on the [wiki](https://wiki.kavit
- HTML/Javascript editor of choice (VS Code/Sublime Text/Webstorm/Atom/etc)
- [Git](https://git-scm.com/downloads)
- [NodeJS](https://nodejs.org/en/download/) (Node 16.X.X or higher)
-- .NET 6.0+
+- .NET 7.0+
- dotnet tool install -g --version 6.4.0 Swashbuckle.AspNetCore.Cli
### Getting started ###
diff --git a/Kavita.Common/Configuration.cs b/Kavita.Common/Configuration.cs
index 3a13df04f..96719addb 100644
--- a/Kavita.Common/Configuration.cs
+++ b/Kavita.Common/Configuration.cs
@@ -213,10 +213,6 @@ public static class Configuration
#region BaseUrl
private static string GetBaseUrl(string filePath)
{
- if (new OsInfo(Array.Empty<IOsVersionAdapter>()).IsDocker)
- {
- return DefaultBaseUrl;
- }
try
{
@@ -252,10 +248,6 @@ public static class Configuration
private static void SetBaseUrl(string filePath, string value)
{
- if (new OsInfo(Array.Empty<IOsVersionAdapter>()).IsDocker)
- {
- return;
- }
var baseUrl = !value.StartsWith("/")
? $"/{value}"