@@ -15,28 +15,26 @@ var RedirectCookieName = "tinyauth-redirect"
1515// Main app config
1616
1717type Config struct {
18- AppURL string `description:"The base URL where the app is hosted." yaml:"appUrl"`
19- ResourcesDir string `description:"The directory where resources are stored." yaml:"resourcesDir"`
20- DatabasePath string `description:"The path to the database file." yaml:"databasePath"`
21- DisableAnalytics bool `description:"Disable analytics." yaml:"disableAnalytics"`
22- DisableResources bool `description:"Disable resources server." yaml:"disableResources"`
23- DisableUIWarnings bool `description:"Disable UI warnings." yaml:"disableUIWarnings"`
24- Server ServerConfig `description:"Server configuration." yaml:"server"`
25- Auth AuthConfig `description:"Authentication configuration." yaml:"auth"`
26- Apps map [string ]App `description:"Application ACLs configuration." yaml:"apps"`
27- OAuth OAuthConfig `description:"OAuth configuration." yaml:"oauth"`
28- OIDC OIDCConfig `description:"OIDC configuration." yaml:"oidc"`
29- UI UIConfig `description:"UI customization." yaml:"ui"`
30- Ldap LdapConfig `description:"LDAP configuration." yaml:"ldap"`
31- Experimental ExperimentalConfig `description:"Experimental features, use with caution." yaml:"experimental"`
32- Log LogConfig `description:"Logging configuration." yaml:"log"`
18+ AppURL string `description:"The base URL where the app is hosted." yaml:"appUrl"`
19+ ResourcesDir string `description:"The directory where resources are stored." yaml:"resourcesDir"`
20+ DatabasePath string `description:"The path to the database file." yaml:"databasePath"`
21+ DisableAnalytics bool `description:"Disable analytics." yaml:"disableAnalytics"`
22+ DisableResources bool `description:"Disable resources server." yaml:"disableResources"`
23+ Server ServerConfig `description:"Server configuration." yaml:"server"`
24+ Auth AuthConfig `description:"Authentication configuration." yaml:"auth"`
25+ Apps map [string ]App `description:"Application ACLs configuration." yaml:"apps"`
26+ OAuth OAuthConfig `description:"OAuth configuration." yaml:"oauth"`
27+ OIDC OIDCConfig `description:"OIDC configuration." yaml:"oidc"`
28+ UI UIConfig `description:"UI customization." yaml:"ui"`
29+ Ldap LdapConfig `description:"LDAP configuration." yaml:"ldap"`
30+ Experimental ExperimentalConfig `description:"Experimental features, use with caution." yaml:"experimental"`
31+ Log LogConfig `description:"Logging configuration." yaml:"log"`
3332}
3433
3534type ServerConfig struct {
36- Port int `description:"The port on which the server listens." yaml:"port"`
37- Address string `description:"The address on which the server listens." yaml:"address"`
38- SocketPath string `description:"The path to the Unix socket." yaml:"socketPath"`
39- TrustedProxies []string `description:"Comma-separated list of trusted proxy addresses." yaml:"trustedProxies"`
35+ Port int `description:"The port on which the server listens." yaml:"port"`
36+ Address string `description:"The address on which the server listens." yaml:"address"`
37+ SocketPath string `description:"The path to the Unix socket." yaml:"socketPath"`
4038}
4139
4240type AuthConfig struct {
@@ -48,6 +46,7 @@ type AuthConfig struct {
4846 SessionMaxLifetime int `description:"Maximum session lifetime in seconds." yaml:"sessionMaxLifetime"`
4947 LoginTimeout int `description:"Login timeout in seconds." yaml:"loginTimeout"`
5048 LoginMaxRetries int `description:"Maximum login retries." yaml:"loginMaxRetries"`
49+ TrustedProxies []string `description:"Comma-separated list of trusted proxy addresses." yaml:"trustedProxies"`
5150}
5251
5352type IPConfig struct {
@@ -71,6 +70,7 @@ type UIConfig struct {
7170 Title string `description:"The title of the UI." yaml:"title"`
7271 ForgotPasswordMessage string `description:"Message displayed on the forgot password page." yaml:"forgotPasswordMessage"`
7372 BackgroundImage string `description:"Path to the background image." yaml:"backgroundImage"`
73+ DisableWarnings bool `description:"Disable UI warnings." yaml:"disableWarnings"`
7474}
7575
7676type LdapConfig struct {
0 commit comments