Updated documentation to reflect current status, fixed broken Dockerfile and Docker configuration, updated to python3.13

This commit is contained in:
2026-01-24 17:48:06 +01:00
parent 6d39540e8d
commit 7f2a14609f
11 changed files with 339 additions and 155 deletions

View File

@@ -1,7 +1,7 @@
FROM ubuntu:24.04 AS ubuntu
FROM ubuntu:25.10 AS ubuntu
WORKDIR /app
RUN apt-get update
RUN apt-get install -y python3.12 python3.12-venv python3.12-dev dotnet-sdk-8.0
RUN apt-get install -y python3.13 python3.13-venv python3.13-dev dotnet-sdk-10.0
RUN apt-get clean
COPY . /src/
ENV ASPNETCORE_ENVIRONMENT Docker

View File

@@ -80,8 +80,6 @@ else
app.UseMiddleware<Shared.ApiKeyMiddleware>();
}
// app.UseHttpsRedirection();
app.MapControllers();
app.Run();

View File

@@ -21,7 +21,8 @@
"ApiKeys": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],
"Server": {
"BaseUri": "http://localhost:5146",
"ApiKey": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
"ApiKey": "APIKeyForTheServer"
},
"PythonRuntime": "libpython3.13.so"
}
}

View File

@@ -5,26 +5,8 @@
"Microsoft.AspNetCore": "Warning"
}
},
"Kestrel":{
"Endpoints": {
"http":{
"Url": "http://0.0.0.0:5120"
}
}
},
"Embeddingsearch": {
"BaseUri": "http://172.17.0.1:5146",
"ApiKeys": ["b54ea868-496e-11f0-9cc7-f79f06b160e5", "bbdeedf0-496e-11f0-9744-97e28c221f67"]
},
"EmbeddingsearchIndexer": {
"Elmah": {
"AllowedHosts": [
"127.0.0.1",
"::1",
"172.17.0.1"
]
},
"Worker":
"Indexer": {
"Workers":
[
{
"Name": "pythonExample",
@@ -36,6 +18,12 @@
}
]
}
]
],
"ApiKeys": ["APIKeyOfYourChoice", "AnotherOneIfYouLike"],
"Server": {
"BaseUri": "http://172.17.0.1:5146",
"ApiKey": "APIKeyForTheServer"
},
"PythonRuntime": "libpython3.13.so"
}
}

View File

@@ -1,10 +1,10 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /build
COPY . .
RUN dotnet restore ./Server.csproj
RUN dotnet publish ./Server.csproj -c Release -o /output
RUN dotnet restore Server/Server.csproj
RUN dotnet publish Server/Server.csproj -c Release -o /output
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
COPY --from=build /output .
ENV ASPNETCORE_ENVIRONMENT Docker

View File

@@ -15,27 +15,41 @@
"UseSwagger": true,
"Embeddingsearch": {
"ConnectionStrings": {
"SQL": "server=localhost;database=embeddingsearch;uid=embeddingsearch;pwd=somepassword!;"
"SQL": "server=localhost;database=embeddingsearch;uid=embeddingsearch;pwd=somepassword!;",
"Cache": "Data Source=embeddings.db;Mode=ReadWriteCreate;Cache=Shared"
},
"Elmah": {
"AllowedHosts": [
"127.0.0.1",
"::1",
"172.17.0.1"
]
"LogPath": "~/logs"
},
"AiProviders": {
"ollama": {
"handler": "ollama",
"baseURL": "http://localhost:11434"
"baseURL": "http://localhost:11434",
"Allowlist": [".*"],
"Denylist": ["qwen3-coder:latest", "qwen3:0.6b", "qwen3-vl", "deepseek-ocr"]
},
"localAI": {
"handler": "openai",
"baseURL": "http://localhost:8080",
"ApiKey": "Some API key here"
"ApiKey": "Some API key here",
"Allowlist": [".*"],
"Denylist": ["cross-encoder", "jina-reranker-v1-tiny-en", "whisper-small"]
}
},
"ApiKeys": ["Some UUID here", "Another UUID here"],
"UseHttpsRedirection": true
"SimpleAuth": {
"Users": [
{
"Username": "admin",
"Password": "UnsafePractice.67",
"Roles": ["Admin"]
}
]
},
"ApiKeys": ["APIKeyOfYourChoice", "AnotherOneIfYouLike"],
"Cache": {
"CacheTopN": 10000,
"StoreEmbeddingCache": true,
"StoreTopN": 10000
}
}
}