summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
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 != "" {