summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-20 11:17:19 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-20 11:17:19 -1000
commit07ba815e8517ee2d3a5fa531361bbd09bdfcbaa7 (patch)
treeca9d9be0f02d5a724a3646f87d4a9f50203249cc /internal/config/config.go
parent6a59098c3096f5ebd3a61ef5268cbd480b0f1519 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go15
1 files changed, 4 insertions, 11 deletions
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 != "" {