Files
Gokapi/internal/models/Configuration.go
Marc Ole Bulling 3595a18dbd Replace CLI/env based setup with web UI setup, add OAuth2 (#33)
* 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
2021-12-31 01:40:10 +01:00

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"`
}