mirror of
https://github.com/xwiki-labs/cryptpad-docker.git
synced 2024-11-24 17:55:03 +00:00
parent
597f3bff82
commit
029ebd47ea
3 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@ WORKDIR /cryptpad
|
||||||
COPY cryptpad /cryptpad
|
COPY cryptpad /cryptpad
|
||||||
|
|
||||||
RUN sed -i "s@//httpAddress: '::'@httpAddress: '0.0.0.0'@" /cryptpad/config/config.example.js
|
RUN sed -i "s@//httpAddress: '::'@httpAddress: '0.0.0.0'@" /cryptpad/config/config.example.js
|
||||||
|
RUN sed -i "s@installMethod: 'unspecified'@installMethod: 'docker'@" /cryptpad/config/config.example.js
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install --production \
|
RUN npm install --production \
|
||||||
|
|
|
@ -13,6 +13,7 @@ WORKDIR /cryptpad
|
||||||
COPY cryptpad /cryptpad
|
COPY cryptpad /cryptpad
|
||||||
|
|
||||||
RUN sed -i "s@//httpAddress: '::'@httpAddress: '0.0.0.0'@" /cryptpad/config/config.example.js
|
RUN sed -i "s@//httpAddress: '::'@httpAddress: '0.0.0.0'@" /cryptpad/config/config.example.js
|
||||||
|
RUN sed -i "s@installMethod: 'unspecified'@installMethod: 'docker-alpine'@" /cryptpad/config/config.example.js
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install --production \
|
RUN npm install --production \
|
||||||
|
|
|
@ -71,7 +71,7 @@ if [ ! -f "${CPAD_NGINX_CPAD_CONF:=/etc/nginx/conf.d/cryptpad.conf}" ]; then
|
||||||
# Change nginx document root
|
# Change nginx document root
|
||||||
sed -i "s@\(root\) */.*\([^;]\)@\1 $CPAD_HOME@" $CPAD_NGINX_CPAD_CONF
|
sed -i "s@\(root\) */.*\([^;]\)@\1 $CPAD_HOME@" $CPAD_NGINX_CPAD_CONF
|
||||||
|
|
||||||
# Wether or not Nginx should terminate TLS (defaults to true)
|
# Whether or not Nginx should terminate TLS (defaults to true)
|
||||||
if [ -n "$CPAD_TLS_CERT" \
|
if [ -n "$CPAD_TLS_CERT" \
|
||||||
-a -n "$CPAD_TLS_KEY" ]; then
|
-a -n "$CPAD_TLS_KEY" ]; then
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue