30 lines
697 B
Go
30 lines
697 B
Go
package models
|
|
|
|
type Config struct {
|
|
CSRF struct {
|
|
CSRFKey string `json:"csrfKey"`
|
|
} `json:"csrf"`
|
|
|
|
HttpServer struct {
|
|
Port int `json:"port"`
|
|
Address string `json:"address"`
|
|
ProductionMode bool `json:"productionMode"`
|
|
} `json:"httpServer"`
|
|
|
|
License struct {
|
|
APIURL string `json:"apiUrl"`
|
|
APIKey string `json:"apiKey"`
|
|
} `json:"license"`
|
|
|
|
Session struct {
|
|
AuthKeyPath string `json:"authKeyPath"`
|
|
EncryptionKeyPath string `json:"encryptionKeyPath"`
|
|
Name string `json:"name"`
|
|
} `json:"session"`
|
|
|
|
Site struct {
|
|
SiteName string `json:"siteName"`
|
|
CopyrightYearStart int `json:"copyrightYearStart"`
|
|
} `json:"site"`
|
|
}
|