summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorAndy Leap <andyleap@gmail.com>2014-11-03 20:46:53 -0500
committerAndy Leap <andyleap@gmail.com>2014-11-03 20:49:56 -0500
commit5094e9501ce3c5476cb5ad1b2b392f5e8b60ddff (patch)
treebf89e0b35a1e7d4e60ae39a40e0b935ce2397f93 /modules/setting
parente9875edcade5992df68f0467c110f22affa2434a (diff)
downloadgitea-5094e9501ce3c5476cb5ad1b2b392f5e8b60ddff.tar.gz
gitea-5094e9501ce3c5476cb5ad1b2b392f5e8b60ddff.zip
Add basic FCGI support
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index b8fc4dec2e..64c32ec73a 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")