From 4438b7793b143c71675b0ae954036830b7afd2b7 Mon Sep 17 00:00:00 2001 From: Unknwon <u@gogs.io> Date: Thu, 25 Feb 2016 00:21:48 -0500 Subject: 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. --- conf/app.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'conf/app.ini') diff --git a/conf/app.ini b/conf/app.ini index 277f313d52..9ce2c6f9d1 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -63,8 +63,13 @@ LOCAL_ROOT_URL = http://localhost:%(HTTP_PORT)s/ DISABLE_SSH = false ; Whether use builtin SSH server or not. START_SSH_SERVER = false +; Domain name to be exposed in clone URL +SSH_DOMAIN = %(DOMAIN)s +; Port number to be exposed in clone URL SSH_PORT = 22 -; Root path of SSH directory +; Port number builtin SSH server listens on +SSH_LISTEN_PORT = %(SSH_PORT)s +; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. SSH_ROOT_PATH = ; Disable CDN even in "prod" mode OFFLINE_MODE = false -- cgit v1.2.3