diff options
author | Valery Piashchynski <[email protected]> | 2020-11-27 16:08:27 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-27 16:08:27 +0300 |
commit | 6abfe73b5f7b66a7be094486e29ab3f2ab1ce940 (patch) | |
tree | 888b5eb96ab396ef53f77ce3944ed62af9cc878d /plugins/http/config.go | |
parent | b5020bfce6b5362400cb9b578fe32c1a6ed5d61a (diff) |
Gzip plugin
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 } |