Fixed nginx crashes and Email

This commit is contained in:
msbt
2018-03-29 16:36:03 +02:00
parent 3c9f74f6f7
commit bf753d0414
3 changed files with 31 additions and 21 deletions

View File

@@ -2,17 +2,16 @@ FROM cloudron/base:0.10.0
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
# Nginx
# nginx
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 mv /var/lib/nginx /app/data/nginx && ln -sf /app/data/nginx /var/lib/nginx
RUN rm -rf /var/log/nginx && ln -sf /run/nginx_log /var/log/nginx
# TURN
@@ -40,7 +39,7 @@ RUN pip install https://github.com/matrix-org/synapse/tarball/master
# copy index.html
COPY index.html /app/code
RUN chown -R www-data.www-data /app/code
RUN chown -R www-data.www-data /app/code /app/data
ADD start_matrix.sh /app/