2022-11-08 00:03:45 +00:00
|
|
|
package host
|
|
|
|
|
2023-01-06 01:42:02 +00:00
|
|
|
import "npm/internal/entity/upstream"
|
2023-01-04 05:36:56 +00:00
|
|
|
|
2022-11-08 00:03:45 +00:00
|
|
|
// 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
|
2023-01-04 05:36:56 +00:00
|
|
|
NginxTemplateID int
|
2023-01-09 03:18:11 +00:00
|
|
|
ProxyScheme string
|
|
|
|
ProxyHost string
|
|
|
|
ProxyPort int
|
2022-11-08 00:03:45 +00:00
|
|
|
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
|
2023-01-06 01:42:02 +00:00
|
|
|
Upstream upstream.Model
|
2022-11-08 00:03:45 +00:00
|
|
|
}
|