mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 04:30:57 +01:00
put shared code into own mod (common), + apicontext env vars
This commit is contained in:
@@ -40,7 +40,8 @@ type Config struct {
|
||||
StorageDir string `koanf:"storagedir"` // db and uploads go there
|
||||
Url string `koanf:"url"` // public visible url, might be different from Listen
|
||||
DbFile string `koanf:"dbfile"`
|
||||
Super string `koanf:"super"` // the apicontext which has all permissions
|
||||
Super string `koanf:"super"` // the apicontext which has all permissions
|
||||
Frontpage string `koanf:"frontpage"` // a html file
|
||||
|
||||
// fiber settings, see:
|
||||
// https://docs.gofiber.io/api/fiber/#config
|
||||
@@ -52,7 +53,7 @@ type Config struct {
|
||||
Network string
|
||||
|
||||
// only settable via config
|
||||
Apicontext []Apicontext `koanf:"apicontext"`
|
||||
Apicontexts []Apicontext `koanf:"apicontext"`
|
||||
|
||||
// Internals only
|
||||
RegNormalizedFilename *regexp.Regexp
|
||||
|
||||
Reference in New Issue
Block a user