beta #2
@@ -26,8 +26,12 @@ RUN mkdir -p /etc/ssl/private && mkdir -p /etc/ssl/certs && \
|
||||
COPY src/container_apache.conf /etc/apache2/sites-available/$DOMAIN.conf
|
||||
RUN sed -i "s/{{DOMAIN}}/$DOMAIN/g" /etc/apache2/sites-available/$DOMAIN.conf
|
||||
RUN a2dissite 000-default default-ssl
|
||||
RUN a2ensite $DOMAIN.conf
|
||||
#RUN a2ensite $DOMAIN.conf
|
||||
RUN a2ensite ${DOMAIN}.conf
|
||||
RUN a2enmod ssl rewrite
|
||||
#derniers ajout
|
||||
RUN a2enmod rewrite
|
||||
|
||||
|
||||
# Installer Hubzilla
|
||||
RUN rm -r /var/www/html/
|
||||
@@ -45,6 +49,9 @@ RUN sed -i "s/{{SMTP_EMAIL}}/${SMTP_EMAIL}/g" /etc/msmtprc && sed -i "s/{{SMTP_S
|
||||
RUN chmod 600 /etc/msmtprc && chown www-data:www-data /etc/msmtprc
|
||||
RUN echo "sendmail_path = /usr/bin/msmtp -t" >> /etc/php/8.2/apache2/php.ini
|
||||
|
||||
#config php.ini##
|
||||
RUN echo "upload_max_filesize = 20M" >> /etc/php/8.2/apache2/php.ini && \
|
||||
echo "post_max_size = 20M" >> /etc/php/8.2/apache2/php.ini
|
||||
|
||||
# Cron
|
||||
RUN echo "*/15 * * * * cd /var/www/html; /usr/bin/php Zotlabs/Daemon/Master.php Cron" | crontab -u www-data -
|
||||
|
||||
Reference in New Issue
Block a user