Documentation ¶
Index ¶
- func CreateWebsiteIncludeFile(username string) error
- type NgxConfLocation
- type NgxConfServer
- func (n *NgxConfServer) AddServerName(servername ...string)
- func (n *NgxConfServer) GenerateToString() (string, error)
- func (n *NgxConfServer) GetConfFileName() string
- func (n *NgxConfServer) SetConfigName(config_name string)
- func (n *NgxConfServer) SetUserDataPath(ud_path string)
- func (n *NgxConfServer) Update()
- func (n *NgxConfServer) WriteToFile(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NgxConfLocation ¶
type NgxConfLocation struct { Root string `json:"root"` Expires string `json:"expires"` ProxyPass string `json:"proxy_pass"` ProxyRedirect string `json:"proxy_redirect"` ProxySetHeader map[string]string `json:"proxy_set_header"` ProxyTempPath string `json:"proxy_temp_path"` ProxyConnectTimeout string `json:"proxy_connect_timeout"` ProxySendTimeout string `json:"proxy_send_timeout"` ProxyReadTimeout string ProxyBufferSize string ProxyBusyBuffersSize string Charset string ClientMaxBodySize string ClientBodyBufferSize string ClientBodyTemp string ClientBodyTempPath string Rewrite []string `json:"rewrite"` Include string FastcgiPass string `json:"fastcgi_pass"` FastcgiIndex string `json:"fastcgi_index"` FastcgiParam string `json:"fastcgi_param"` FastcgiIgnoreClientAbort string ValidReferers string Alias string Deny []string Allow []string }
type NgxConfServer ¶
type NgxConfServer struct { Listen []string `json:"listen"` ServerName []string RunDirectory string `json:"run_directory"` // public Root string `json:"root"` AccessLog string `json:"access_log"` ErrorLog string `json:"error_log"` Index string `json:"index"` Charset string `json:"charset"` Locations []NgxConfLocation Include []string `json:"include"` Ssl string `json:"ssl"` SslCertificate string `json:"ssl_certificate"` SslCertificateKey string `json:"ssl_certificate_key"` SslSessionTimeout string `json:"ssl_session_timeout"` SslProtocols string `json:"ssl_protocols"` SslCiphers string `json:"ssl_ciphers"` SslPreferServerCiphers string `json:"ssl_prefer_server_ciphers"` SslStapling string SslStaplingVerify string SslTrustedCertificate string Resolver string Return string `json:"return"` ErrorPage string KeepaliveTimeout string Set []string If []string ForceHttps bool AppName string AppExposeName string AppExpose string // contains filtered or unexported fields }
func NewNgxConfServer ¶
func NewNgxConfServer(servername ...string) *NgxConfServer
func (*NgxConfServer) AddServerName ¶
func (n *NgxConfServer) AddServerName(servername ...string)
func (*NgxConfServer) GenerateToString ¶
func (n *NgxConfServer) GenerateToString() (string, error)
func (*NgxConfServer) GetConfFileName ¶
func (n *NgxConfServer) GetConfFileName() string
func (*NgxConfServer) SetConfigName ¶
func (n *NgxConfServer) SetConfigName(config_name string)
func (*NgxConfServer) SetUserDataPath ¶
func (n *NgxConfServer) SetUserDataPath(ud_path string)
func (*NgxConfServer) Update ¶
func (n *NgxConfServer) Update()
func (*NgxConfServer) WriteToFile ¶
func (n *NgxConfServer) WriteToFile(filename string) error
Click to show internal directories.
Click to hide internal directories.