aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorleigh capili2019-08-23 17:44:24 -0600
committerAntoine GIRARD2019-08-24 01:44:24 +0200
commit70d2244e49e60e11877f850803d33ef1e3900fa6 (patch)
tree5c1c8a788396bc75511d377a84b827df65c67950 /docker
parent7c8166d331e3302ae14c003ce0c86773792cccc6 (diff)
Support SSH_LISTEN_PORT env var in docker app.ini template (#7829)
Signed-off-by: leigh capili <leigh@null.net>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/root/etc/s6/gitea/setup1
-rw-r--r--docker/root/etc/templates/app.ini1
2 files changed, 2 insertions, 0 deletions
diff --git a/docker/root/etc/s6/gitea/setup b/docker/root/etc/s6/gitea/setup
index c4fbf5d65..f87ce9115 100755
--- a/docker/root/etc/s6/gitea/setup
+++ b/docker/root/etc/s6/gitea/setup
@@ -31,6 +31,7 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then
ROOT_URL=${ROOT_URL:-""} \
DISABLE_SSH=${DISABLE_SSH:-"false"} \
SSH_PORT=${SSH_PORT:-"22"} \
+ SSH_LISTEN_PORT=${SSH_LISTEN_PORT:-"${SSH_PORT}"} \
LFS_START_SERVER=${LFS_START_SERVER:-"false"} \
DB_TYPE=${DB_TYPE:-"sqlite3"} \
DB_HOST=${DB_HOST:-"localhost:3306"} \
diff --git a/docker/root/etc/templates/app.ini b/docker/root/etc/templates/app.ini
index 212cd854d..e05c24a09 100644
--- a/docker/root/etc/templates/app.ini
+++ b/docker/root/etc/templates/app.ini
@@ -17,6 +17,7 @@ HTTP_PORT = $HTTP_PORT
ROOT_URL = $ROOT_URL
DISABLE_SSH = $DISABLE_SSH
SSH_PORT = $SSH_PORT
+SSH_LISTEN_PORT = $SSH_LISTEN_PORT
LFS_START_SERVER = $LFS_START_SERVER
LFS_CONTENT_PATH = /data/git/lfs