mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 21:35:34 +03:00
web ui: basic logic
This commit is contained in:
@@ -28,6 +28,7 @@ type Config struct {
|
||||
DB DB `env:",prefix=DB_"`
|
||||
Logging Logging `env:",prefix=LOGGING_"`
|
||||
API API `env:",prefix=API_"`
|
||||
UI UI `env:",prefix=UI_"`
|
||||
PDF PDF `env:",prefix=PDF_"`
|
||||
}
|
||||
|
||||
@@ -42,9 +43,15 @@ type PDF struct {
|
||||
}
|
||||
|
||||
type API struct {
|
||||
Prefix string `env:"PREFIX,default=/"`
|
||||
Address string `env:"ADDRESS,default=0.0.0.0:5001"`
|
||||
}
|
||||
|
||||
type UI struct {
|
||||
Enabled bool `env:"ENABLED,default=true"`
|
||||
Prefix string `env:"PREFIX,default=/"`
|
||||
}
|
||||
|
||||
type DB struct {
|
||||
Path string `env:"PATH,default=./db"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user