26 lines
572 B
Go
26 lines
572 B
Go
package model
|
|
|
|
type HttpPath struct {
|
|
Path string `json:"path"`
|
|
Root string `json:"root"`
|
|
Proxyto string `json:"proxyto"`
|
|
ProxyHeaders string `json:"proxyheaders"`
|
|
}
|
|
|
|
type HttpServerConfig struct {
|
|
ServerName string `json:"server"`
|
|
Port int `json:"port"`
|
|
Host string `json:"host"`
|
|
Paths []HttpPath
|
|
}
|
|
|
|
type GoHttpdConfig struct {
|
|
Admin HttpServerConfig `json:"admin"`
|
|
Servers []HttpServerConfig `json:"servers"`
|
|
}
|
|
|
|
var DefaultAdminConfig HttpServerConfig = HttpServerConfig{
|
|
ServerName: "admin",
|
|
Port: 8080,
|
|
}
|