1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 09:43:11 +00:00

use AppSubUrl as prefix for routes in FCGI mode

This commit is contained in:
Kyle P Davis 2014-11-16 00:06:09 -05:00
parent 52d66ba6c8
commit 47f37e55e9

View file

@ -85,6 +85,9 @@ func newMacaron() *macaron.Macaron {
if setting.EnableGzip {
m.Use(macaron.Gziper())
}
if setting.Protocol == setting.FCGI {
m.SetURLPrefix(setting.AppSubUrl)
}
m.Use(macaron.Static(
path.Join(setting.StaticRootPath, "public"),
macaron.StaticOptions{