add: implement shortlink
This commit is contained in:
@@ -33,6 +33,12 @@ type Config struct {
|
||||
EnableDatabaseAuth bool `mapstructure:"enable_database_auth"`
|
||||
} `mapstructure:"auth"`
|
||||
|
||||
Shortlink struct {
|
||||
BaseURL string `mapstructure:"base_url"` // Base URL for shortlinks (e.g., https://example.com)
|
||||
DefaultExpiryHours int `mapstructure:"default_expiry_hours"` // Default expiry time in hours
|
||||
MaxAttempts int `mapstructure:"max_attempts"` // Maximum failed attempts allowed
|
||||
} `mapstructure:"shortlink"`
|
||||
|
||||
Database struct {
|
||||
Host string `mapstructure:"host"`
|
||||
Port int `mapstructure:"port"`
|
||||
|
||||
Reference in New Issue
Block a user