diff options
author | Unknwon <u@gogs.io> | 2016-02-25 00:21:48 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-25 00:21:48 -0500 |
commit | 4438b7793b143c71675b0ae954036830b7afd2b7 (patch) | |
tree | dc3dead31ecc9ee05153901ac4825ab8ed14b00b /conf/app.ini | |
parent | baaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb (diff) | |
download | gitea-4438b7793b143c71675b0ae954036830b7afd2b7.tar.gz gitea-4438b7793b143c71675b0ae954036830b7afd2b7.zip |
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.
Diffstat (limited to 'conf/app.ini')
-rw-r--r-- | conf/app.ini | 7 |
1 files changed, 6 insertions, 1 deletions
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 |