feat: Initial commit.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
FROM httpd:2.4
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y curl
|
||||
|
||||
COPY apache/apache_vhost.conf /usr/local/apache2/conf/sites-enabled/sslguard.skyger.cz.conf
|
||||
COPY apache/my-modules.conf /usr/local/apache2/conf/extra/my-modules.conf
|
||||
|
||||
RUN echo "Include conf/extra/my-modules.conf" \
|
||||
>> /usr/local/apache2/conf/httpd.conf
|
||||
RUN echo "Include conf/sites-enabled/sslguard.skyger.cz.conf" \
|
||||
>> /usr/local/apache2/conf/httpd.conf
|
||||
RUN echo "RemoteIPHeader X-Forwarded-For" \
|
||||
>> /usr/local/apache2/conf/httpd.conf
|
||||
RUN echo "RemoteIPTrustedProxy 172.16.0.0/12" \
|
||||
>> /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
#RUN apachectl configtest && apachectl graceful
|
||||
Reference in New Issue
Block a user