From 5094e9501ce3c5476cb5ad1b2b392f5e8b60ddff Mon Sep 17 00:00:00 2001 From: Andy Leap Date: Mon, 3 Nov 2014 20:46:53 -0500 Subject: Add basic FCGI support --- modules/setting/setting.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/setting/setting.go') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index b8fc4dec..64c32ec7 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -28,6 +28,7 @@ type Scheme string const ( HTTP Scheme = "http" HTTPS Scheme = "https" + FCGI Scheme = "fcgi" ) var ( @@ -181,6 +182,9 @@ func NewConfigContext() { CertFile = Cfg.MustValue("server", "CERT_FILE") KeyFile = Cfg.MustValue("server", "KEY_FILE") } + if Cfg.MustValue("server", "PROTOCOL") == "fcgi" { + Protocol = FCGI + } Domain = Cfg.MustValue("server", "DOMAIN", "localhost") HttpAddr = Cfg.MustValue("server", "HTTP_ADDR", "0.0.0.0") HttpPort = Cfg.MustValue("server", "HTTP_PORT", "3000") -- cgit v1.2.3