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