From 07ba815e8517ee2d3a5fa531361bbd09bdfcbaa7 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 20 Jan 2026 11:17:19 -1000 Subject: Remove Obsidian integration for public server deployment Obsidian relied on local filesystem access which is incompatible with public server deployment. This removes all Obsidian-related code including: - API client and interface - Store layer methods (SaveNotes, GetNotes, SearchNotes) - Handler methods and routes - UI tab and templates - Configuration fields - Related tests Co-Authored-By: Claude Opus 4.5 --- internal/config/config.go | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index 93f57cc..b3bc43d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -15,9 +15,8 @@ type Config struct { TrelloToken string // Paths - ObsidianVaultPath string - DatabasePath string - TemplateDir string + DatabasePath string + TemplateDir string // Server Port string @@ -35,9 +34,8 @@ func Load() (*Config, error) { TrelloToken: os.Getenv("TRELLO_TOKEN"), // Paths - ObsidianVaultPath: os.Getenv("OBSIDIAN_VAULT_PATH"), - DatabasePath: getEnvWithDefault("DATABASE_PATH", "./dashboard.db"), - TemplateDir: getEnvWithDefault("TEMPLATE_DIR", "web/templates"), + DatabasePath: getEnvWithDefault("DATABASE_PATH", "./dashboard.db"), + TemplateDir: getEnvWithDefault("TEMPLATE_DIR", "web/templates"), // Server Port: getEnvWithDefault("PORT", "8080"), @@ -81,11 +79,6 @@ func (c *Config) HasTrello() bool { return c.TrelloAPIKey != "" && c.TrelloToken != "" } -// HasObsidian checks if Obsidian is configured -func (c *Config) HasObsidian() bool { - return c.ObsidianVaultPath != "" -} - // getEnvWithDefault returns environment variable value or default if not set func getEnvWithDefault(key, defaultValue string) string { if value := os.Getenv(key); value != "" { -- cgit v1.2.3