Add new config option for builtin SSH server
Config option [server] SSH_LISTEN_PORT to the port the builtin SSH server will be listen. It can be different from SSH_PORT which is supposed to be exposed in the clone URL. This should solve the problem when user runs Gogs inside Docker container and still want to use builtin SSH server.
This commit is contained in:
parent
baaf6046a1
commit
4438b7793b
6 changed files with 14 additions and 7 deletions
|
@ -89,8 +89,8 @@ func GlobalInit() {
|
|||
checkRunMode()
|
||||
|
||||
if setting.StartSSHServer {
|
||||
ssh.Listen(setting.SSHPort)
|
||||
log.Info("SSH server started on :%v", setting.SSHPort)
|
||||
ssh.Listen(setting.SSHListenPort)
|
||||
log.Info("SSH server started on :%v", setting.SSHListenPort)
|
||||
}
|
||||
|
||||
// Build Sanitizer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue