feat: drop sqlite support
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m27s
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m27s
This commit is contained in:
parent
5e00060421
commit
da718427bd
27 changed files with 1296 additions and 115 deletions
|
|
@ -17,7 +17,6 @@ type Config struct {
|
|||
Host string
|
||||
Port string
|
||||
|
||||
DBDriver string
|
||||
DBConnection string
|
||||
|
||||
JWTSecret string
|
||||
|
|
@ -53,8 +52,7 @@ func Load(version string) *Config {
|
|||
Host: envString("HOST", "127.0.0.1"),
|
||||
Port: envString("PORT", "9000"),
|
||||
|
||||
DBDriver: envString("DB_DRIVER", "sqlite"),
|
||||
DBConnection: envString("DB_CONNECTION", "./data/local.db?_pragma=foreign_keys(1)&_pragma=journal_mode(WAL)"),
|
||||
DBConnection: envRequired("DB_CONNECTION"),
|
||||
|
||||
JWTSecret: envRequired("JWT_SECRET"),
|
||||
JWTExpiry: envDuration("JWT_EXPIRY", 168*time.Hour), // 7 days default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue