diff options
author | Dmitry Patsura <[email protected]> | 2019-06-13 17:46:22 +0300 |
---|---|---|
committer | Dmitry Patsura <[email protected]> | 2019-06-13 20:01:23 +0300 |
commit | f427a13ac091ce5ef814c58870782105adf48c12 (patch) | |
tree | 21de0a765af298b3f5c03fab7a5c8256e7649650 /service/http/config.go | |
parent | 82cfc4f8f89252083aa09e8370b9605d38808b70 (diff) |
Feature: FastCGI - initial #115
Diffstat (limited to 'service/http/config.go')
-rw-r--r-- | service/http/config.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/http/config.go b/service/http/config.go index ecd5a3a8..585216d5 100644 --- a/service/http/config.go +++ b/service/http/config.go @@ -18,6 +18,8 @@ type Config struct { // SSL defines https server options. SSL SSLConfig + FCGI FCGIConfig + // MaxRequestSize specified max size for payload body in megabytes, set 0 to unlimited. MaxRequestSize int64 @@ -32,6 +34,11 @@ type Config struct { Workers *roadrunner.ServerConfig } +type FCGIConfig struct { + // Port and port to handle as http server. + Address string +} + // SSLConfig defines https server configuration. type SSLConfig struct { // Port to listen as HTTPS server, defaults to 443. @@ -52,6 +59,10 @@ func (c *Config) EnableTLS() bool { return c.SSL.Key != "" || c.SSL.Cert != "" } +func (c *Config) EnableFCGI() bool { + return c.FCGI.Address != "" +} + // Hydrate must populate Config values using given Config source. Must return error if Config is not valid. func (c *Config) Hydrate(cfg service.Config) error { if c.Workers == nil { |