mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-04 16:04:10 +02:00
Allow Referrer-Policy header to be configured
This commit is contained in:
parent
4549fd56a9
commit
6bcc8c6770
5 changed files with 23 additions and 7 deletions
|
@ -95,14 +95,18 @@ RUN { \
|
|||
|
||||
VOLUME /var/www/html
|
||||
|
||||
RUN a2enmod rewrite remoteip ;\
|
||||
RUN a2enmod rewrite remoteip env headers ;\
|
||||
{\
|
||||
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
|
||||
{\
|
||||
echo PassEnv APACHE_REFERRER_POLICY ;\
|
||||
echo Header set Referrer-Policy "%{APACHE_REFERRER_POLICY}e" "env=APACHE_REFERRER_POLICY" ;\
|
||||
} > /etc/apache2/conf-available/referrerpolicy.conf;\
|
||||
a2enconf remoteip referrerpolicy
|
||||
|
||||
ENV NEXTCLOUD_VERSION 14.0.0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue