Documentation
¶
Overview ¶
SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
BaseURL string
Organisation string
SecureCookies bool
AdminEmails []string
OnlyAdminCanCreate bool
SMTPEnabled bool // True if SMTP is configured (for email reminders)
AuthRateLimit int // Global auth rate limit (requests per minute), default: 5
DocumentRateLimit int // Document creation rate limit (requests per minute), default: 10
GeneralRateLimit int // General API rate limit (requests per minute), default: 100
ImportMaxSigners int // Maximum signers per CSV import, default: 500
}
type AuthConfig ¶
type ChecksumConfig ¶
type Config ¶
type Config struct {
App AppConfig
Server ServerConfig
Database DatabaseConfig
Checksum ChecksumConfig
Auth AuthConfig
OAuth OAuthConfig
Mail MailConfig
Storage StorageConfig
Logger LoggerConfig
Telemetry TelemetryConfig
}
type DatabaseConfig ¶
type DatabaseConfig struct {
DSN string
}
type LoggerConfig ¶
type MailConfig ¶
type OAuthConfig ¶
type ServerConfig ¶
type ServerConfig struct {
ListenAddr string
}
type StorageConfig ¶ added in v1.3.0
type StorageConfig struct {
Type string // "local", "s3", or "" (disabled)
MaxSizeMB int64 // Max file size in MB (default: 50)
// Local storage
LocalPath string // Path for local storage (default: /data/documents)
// S3-compatible storage
S3Endpoint string
S3Bucket string
S3AccessKey string
S3SecretKey string
S3Region string
S3UseSSL bool
}
func (*StorageConfig) IsEnabled ¶ added in v1.3.0
func (s *StorageConfig) IsEnabled() bool
type TelemetryConfig ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.