From 7e3df528b5ebc204d91dc159dac1b6c9af2340fa Mon Sep 17 00:00:00 2001 From: pierreozoux Date: Sun, 24 May 2015 19:29:20 +0200 Subject: [PATCH] Adds configuration for etherpad port --- etherpad-lite/README.md | 1 + etherpad-lite/entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etherpad-lite/README.md b/etherpad-lite/README.md index a440818..3378279 100644 --- a/etherpad-lite/README.md +++ b/etherpad-lite/README.md @@ -44,6 +44,7 @@ already exist. You can now access Etherpad Lite from http://localhost:9001/ This image supports the following environment variables: * `ETHERPAD_TITLE`: Title of the Etherpad Lite instance. Defaults to "Etherpad". +* `ETHERPAD_PORT`: Port of the Etherpad Lite instance. Defaults to 9001. * `ETHERPAD_SESSION_KEY`: Session key for the Etherpad Lite configuraition. You can set this in case of migrating from another installation. A value is automatically generated by default. diff --git a/etherpad-lite/entrypoint.sh b/etherpad-lite/entrypoint.sh index 02d2adc..14134b2 100755 --- a/etherpad-lite/entrypoint.sh +++ b/etherpad-lite/entrypoint.sh @@ -26,6 +26,7 @@ if [ -z "$ETHERPAD_DB_PASSWORD" ]; then fi : ${ETHERPAD_TITLE:=Etherpad} +: ${ETHERPAD_PORT:=9001} : ${ETHERPAD_SESSION_KEY:=$( node -p "require('crypto').randomBytes(32).toString('hex')")} @@ -48,7 +49,7 @@ if [ ! -f settings.json ]; then { "title": "${ETHERPAD_TITLE}", "ip": "0.0.0.0", - "port" : 9001, + "port" :${ETHERPAD_PORT}, "sessionKey" : "${ETHERPAD_SESSION_KEY}", "dbType" : "mysql", "dbSettings" : {