将 auth 数据库从 SQLite 迁移到 PostgreSQL

This commit is contained in:
fish
2026-05-03 20:50:28 +08:00
parent fbcde3cc71
commit 79d2f292f1
8 changed files with 23 additions and 59 deletions

View File

@@ -8,7 +8,6 @@ import (
type Config struct {
ListenAddr string
DatabaseURL string
AuthDBPath string
TushareAPIURL string
}
@@ -16,7 +15,6 @@ func Load() (*Config, error) {
cfg := &Config{
ListenAddr: getenv("LISTEN_ADDR", ":8080"),
DatabaseURL: os.Getenv("DATABASE_URL"),
AuthDBPath: getenv("AUTH_DB_PATH", "/app/auth/auth.db"),
TushareAPIURL: getenv("TUSHARE_API_URL", "http://tushare:8000"),
}
if cfg.DatabaseURL == "" {