mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
5e5f0de0e2
- Renamed host templates to nginx templates - Generate upstream templates - Better nginx error reporting when reloading - Use tparse for golang test reporting
39 lines
982 B
Go
39 lines
982 B
Go
package host
|
|
|
|
type TemplateUpstream struct {
|
|
Hostname string
|
|
Port int
|
|
BalanceMethod string
|
|
MaxFails int
|
|
FailTimeout int
|
|
AdvancedConfig string
|
|
}
|
|
|
|
// Template is the model given to the template parser, converted from the Model
|
|
type Template struct {
|
|
ID int
|
|
CreatedOn string
|
|
ModifiedOn string
|
|
UserID int
|
|
Type string
|
|
NginxTemplateID int
|
|
ListenInterface string
|
|
DomainNames []string
|
|
UpstreamID int
|
|
CertificateID int
|
|
AccessListID int
|
|
SSLForced bool
|
|
CachingEnabled bool
|
|
BlockExploits bool
|
|
AllowWebsocketUpgrade bool
|
|
HTTP2Support bool
|
|
HSTSEnabled bool
|
|
HSTSSubdomains bool
|
|
IsDisabled bool
|
|
Paths string
|
|
AdvancedConfig string
|
|
Status string
|
|
ErrorMessage string
|
|
Upstreams []TemplateUpstream
|
|
}
|