mirror of
https://git.cloudron.io/cloudron/freshrss-app
synced 2025-09-02 13:25:15 +00:00
Better apache configs
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -24,15 +24,16 @@ RUN wget https://github.com/FreshRSS/Extensions/archive/${EXTENSIONS_VERSION}.ta
|
||||
&& ln -s /app/data/extensions /app/code/extensions \
|
||||
&& ln -s /app/data/extensions/ttrss.php /app/code/p/api/ttrss.php
|
||||
|
||||
ADD apache2.conf /etc/apache2/sites-available/freshrss.conf
|
||||
# configure apache
|
||||
RUN rm /etc/apache2/sites-enabled/*
|
||||
RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
|
||||
COPY apache/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.conf
|
||||
|
||||
RUN rm /etc/apache2/sites-enabled/* \
|
||||
&& sed -e 's,^ErrorLog.*,ErrorLog "/dev/stderr",' -i /etc/apache2/apache2.conf \
|
||||
&& sed -e "s,MaxSpareServers[^:].*,MaxSpareServers 5," -i /etc/apache2/mods-available/mpm_prefork.conf \
|
||||
&& a2disconf other-vhosts-access-log \
|
||||
&& echo "Listen 8000" > /etc/apache2/ports.conf \
|
||||
&& a2enmod headers expires \
|
||||
&& a2ensite freshrss
|
||||
RUN a2disconf other-vhosts-access-log
|
||||
ADD apache/freshrss.conf /etc/apache2/sites-enabled/freshrss.conf
|
||||
RUN echo "Listen 8000" > /etc/apache2/ports.conf
|
||||
|
||||
RUN a2enmod headers expires
|
||||
|
||||
RUN rm -rf /var/lib/php \
|
||||
&& ln -s /run/php /var/lib/php \
|
||||
|
Reference in New Issue
Block a user