Skip to content

Commit

Permalink
Adds configuration for etherpad port
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreozoux committed May 24, 2015
1 parent 5a0078e commit 4be758d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions etherpad-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion etherpad-lite/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')")}

Expand All @@ -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" : {
Expand Down

0 comments on commit 4be758d

Please sign in to comment.