mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-01-15 13:29:36 -06:00
* Initial commit websetup * Added writing cloudstorage credentials * Clean up old configuration generation * Added Oauth2 OpenID Connect support * Bugfixes and fixed tests * Refactoring * Refactoring, added first tests * Added documentation * Refactoring, updated docs * Added tests * Added option to reshow setup for reconfiguring Gokapi instance * Added docs and tests
24 lines
1.2 KiB
Go
24 lines
1.2 KiB
Go
package models
|
|
|
|
// Configuration is a struct that contains the global configuration
|
|
type Configuration struct {
|
|
Authentication AuthenticationConfig `json:"Authentication"`
|
|
Port string `json:"Port"`
|
|
ServerUrl string `json:"ServerUrl"`
|
|
DefaultDownloads int `json:"DefaultDownloads"`
|
|
DefaultExpiry int `json:"DefaultExpiry"`
|
|
DefaultPassword string `json:"DefaultPassword"`
|
|
RedirectUrl string `json:"RedirectUrl"`
|
|
Sessions map[string]Session `json:"Sessions"`
|
|
Files map[string]File `json:"Files"`
|
|
Hotlinks map[string]Hotlink `json:"Hotlinks"`
|
|
DownloadStatus map[string]DownloadStatus `json:"DownloadStatus"`
|
|
ApiKeys map[string]ApiKey `json:"ApiKeys"`
|
|
ConfigVersion int `json:"ConfigVersion"`
|
|
LengthId int `json:"LengthId"`
|
|
DataDir string `json:"DataDir"`
|
|
MaxMemory int `json:"MaxMemory"`
|
|
UseSsl bool `json:"UseSsl"`
|
|
MaxFileSizeMB int `json:"MaxFileSizeMB"`
|
|
}
|