summaryrefslogtreecommitdiffstats
path: root/cmd
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 /cmd
parente9875edcade5992df68f0467c110f22affa2434a (diff)
downloadgitea-5094e9501ce3c5476cb5ad1b2b392f5e8b60ddff.tar.gz
gitea-5094e9501ce3c5476cb5ad1b2b392f5e8b60ddff.zip
Add basic FCGI support
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index d2ab01f1de..d59ab52ee2 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -9,6 +9,7 @@ import (
"html/template"
"io/ioutil"
"net/http"
+ "net/http/fcgi"
"os"
"path"
"strings"
@@ -416,6 +417,8 @@ func runWeb(*cli.Context) {
err = http.ListenAndServe(listenAddr, m)
case setting.HTTPS:
err = http.ListenAndServeTLS(listenAddr, setting.CertFile, setting.KeyFile, m)
+ case setting.FCGI:
+ err = fcgi.Serve(nil, m)
default:
log.Fatal(4, "Invalid protocol: %s", setting.Protocol)
}