diff options
Diffstat (limited to 'plugins/http/config.go')
-rw-r--r-- | plugins/http/config.go | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/plugins/http/config.go b/plugins/http/config.go index 3f1fa69e..ae18e4ce 100644 --- a/plugins/http/config.go +++ b/plugins/http/config.go @@ -32,23 +32,6 @@ func (c *Cidrs) IsTrusted(ip string) bool { return false } -type ServerConfig struct { - // Command includes command strings with all the parameters, example: "php worker.php pipes". - Command string - - // User under which process will be started - User string - - // Relay defines connection method and factory to be used to connect to workers: - // "pipes", "tcp://:6001", "unix://pool.sock" - // This config section must not change on re-configuration. - Relay string - - // RelayTimeout defines for how long socket factory will be waiting for worker connection. This config section - // must not change on re-configuration. - RelayTimeout time.Duration -} - // Config configures RoadRunner HTTP server. type Config struct { // Port and port to handle as http server. @@ -78,6 +61,9 @@ type Config struct { // Env is environment variables passed to the http pool Env map[string]string + Middleware []string + + // slice of net.IPNet cidrs Cidrs } |