summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-12-10 12:23:26 +0000
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-12-10 13:23:26 +0100
commit2c83dac5d47195b7589a9e879598d00c00f1b302 (patch)
tree1d5007bcfbc7781521986fb7d777e53087c133c6 /routers
parent4dc3993b221cf7b321e578e1f542891a49714b2d (diff)
downloadgitea-2c83dac5d47195b7589a9e879598d00c00f1b302.tar.gz
gitea-2c83dac5d47195b7589a9e879598d00c00f1b302.zip
FCGI: Allow FCGI over unix sockets (#9298)
* FCGI: Allow FCGI over unix sockets * fixup! FCGI: Allow FCGI over unix sockets
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index bac7d37916..cdbbfaee04 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -133,7 +133,7 @@ func NewMacaron() *macaron.Macaron {
if setting.EnableGzip {
m.Use(gzip.Middleware())
}
- if setting.Protocol == setting.FCGI {
+ if setting.Protocol == setting.FCGI || setting.Protocol == setting.FCGIUnix {
m.SetURLPrefix(setting.AppSubURL)
}
m.Use(public.Custom(