able to disable SSH for #883

This commit is contained in:
Unknwon 2015-02-07 10:46:57 -05:00
parent 3f2e99962c
commit 2a2596fe61
11 changed files with 24 additions and 13 deletions

View file

@ -33,6 +33,12 @@ var CmdServ = cli.Command{
func setup(logPath string) {
setting.NewConfigContext()
log.NewGitLogger(filepath.Join(setting.LogRootPath, logPath))
if setting.DisableSSH {
println("Gogs: SSH has been disabled")
os.Exit(1)
}
models.LoadModelsConfig()
if models.UseSQLite3 {