mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
22 lines
624 B
Go
22 lines
624 B
Go
package config
|
|
|
|
const (
|
|
DriverSqlite3 = "sqlite3"
|
|
)
|
|
|
|
type Storage struct {
|
|
// Data is the path to the root directory
|
|
Data string `yaml:"data" conf:"default:./.data"`
|
|
}
|
|
|
|
type Database struct {
|
|
Driver string `yaml:"driver" conf:"default:sqlite3"`
|
|
Username string `yaml:"username"`
|
|
Password string `yaml:"password"`
|
|
Host string `yaml:"host"`
|
|
Port string `yaml:"port"`
|
|
Database string `yaml:"database"`
|
|
SslMode string `yaml:"ssl_mode"`
|
|
SqlitePath string `yaml:"sqlite_path" conf:"default:./.data/homebox.db?_pragma=busy_timeout=999&_pragma=journal_mode=WAL&_fk=1&_time_format=sqlite"`
|
|
}
|