Fixed nginx crashes and added email

This commit is contained in:
msbt
2018-03-19 23:26:52 +01:00
parent b318fa557f
commit 3c9f74f6f7
4 changed files with 50 additions and 10 deletions

View File

@@ -3,6 +3,8 @@ MAINTAINER Authors name <support@cloudron.io>
RUN mkdir -p /app/code
RUN mkdir -p /app/data
RUN mkdir -p /app/data/templates
WORKDIR /app/code
EXPOSE 8000
@@ -11,18 +13,18 @@ EXPOSE 8000
RUN rm /etc/nginx/sites-enabled/*
ADD nginx_matrix.conf /etc/nginx/sites-enabled/
RUN rm -rf /var/lib/nginx && ln -sf /app/data/nginx /var/lib/nginx
RUN rm -rf /var/log/nginx && ln -sf /app/data/nginx_log /var/log/nginx
RUN rm -rf /var/log/nginx && ln -sf /run/nginx_log /var/log/nginx
# TURN
RUN apt update && apt-get install -y coturn
RUN sed -e 's,#TURNSERVER_ENABLED=1,TURNSERVER_ENABLED=1,' -i /etc/default/coturn \
&& rm /etc/turnserver.conf \
&& ln -s /app/data/turnserver.conf /etc/turnserver.conf
# Synapse
# a local copy is needed because of the mail templates, else the pip installation would suffice
RUN git clone https://github.com/matrix-org/synapse.git
RUN apt-get install -y build-essential python2.7-dev libffi-dev \
python-pip python-setuptools sqlite3 \
libssl-dev libjpeg-dev libxslt1-dev
@@ -31,6 +33,9 @@ RUN pip install --upgrade setuptools
RUN pip install psycopg2-binary py-bcrypt
RUN pip install https://github.com/matrix-org/synapse/tarball/master
# Identity Server
# fix! RUN pip install https://github.com/matrix-org/sydent/tarball/master
# copy index.html
COPY index.html /app/code