feat: ratelimit, ghcr package support, media path sensitization, LID to CN migration (#6)

* feat: ratelimit, ghcr package and proper project refactor from askarzh

* fix(bridge): validate media path

* update: dependencies

* fix: added LID to contact number migration
This commit is contained in:
Atul Singh
2026-05-13 12:54:31 +02:00
committed by GitHub
parent 680ef32b31
commit 193e0d3c77
20 changed files with 1245 additions and 173 deletions
+11 -1
View File
@@ -2,13 +2,23 @@ package helpers
import (
"encoding/json"
"log/slog"
"os"
"time"
"github.com/modelcontextprotocol/go-sdk/mcp"
)
var apiBaseURL = ReadEnv("API_BASE_URL", "http://192.168.178.119:30015/api")
var apiBaseURL = readApiBaseURL()
func readApiBaseURL() string {
if v := ReadEnv("API_BASE_URL", "http://192.168.178.119:30015/api"); v != "" {
return v
}
const fallback = "http://localhost:8080/api"
slog.Warn("api_base_url not set, using default", "fallback", fallback)
return fallback
}
const apiTimeout = 25 * time.Second