mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 12:50:54 +02:00
apache: set the remote ip from X-Real-IP by default (#297)
This commit is contained in:
parent
e49cfb4433
commit
e01caa961f
4 changed files with 26 additions and 5 deletions
|
@ -95,7 +95,14 @@ RUN { \
|
|||
|
||||
VOLUME /var/www/html
|
||||
|
||||
RUN a2enmod rewrite
|
||||
RUN a2enmod rewrite remoteip ;\
|
||||
{\
|
||||
echo RemoteIPHeader X-Real-IP ;\
|
||||
echo RemoteIPTrustedProxy 10.0.0.0/8 ;\
|
||||
echo RemoteIPTrustedProxy 172.16.0.0/12 ;\
|
||||
echo RemoteIPTrustedProxy 192.168.0.0/16 ;\
|
||||
} > /etc/apache2/conf-available/remoteip.conf;\
|
||||
a2enconf remoteip
|
||||
|
||||
ENV NEXTCLOUD_VERSION 12.0.6
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue