refactor/handlers (#51)

* wip

* refactor: use prefix instead of patern in docker meta

* tests: fix tests
This commit is contained in:
Stavros
2025-03-19 15:48:16 +02:00
committed by GitHub
parent 52f189563b
commit f3471880ee
8 changed files with 811 additions and 704 deletions

View File

@@ -69,15 +69,12 @@ type UserContext struct {
// APIConfig is the configuration for the API
type APIConfig struct {
Port int
Address string
Secret string
AppURL string
CookieSecure bool
SessionExpiry int
DisableContinue bool
GenericName string
Title string
Port int
Address string
Secret string
CookieSecure bool
SessionExpiry int
Domain string
}
// OAuthConfig is the configuration for the providers
@@ -164,3 +161,13 @@ type AppContext struct {
type TotpRequest struct {
Code string `json:"code"`
}
// Server configuration
type HandlersConfig struct {
AppURL string
Domain string
CookieSecure bool
DisableContinue bool
GenericName string
Title string
}