mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 20:17:21 +00:00
able to disable SSH for #883
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user