Aligining the Dockerfile with the version in friendica/docker repository

This commit is contained in:
ne20002 2024-08-31 14:54:05 +00:00
parent 07d6500700
commit f1301aec73
No known key found for this signature in database
9 changed files with 157 additions and 29 deletions

View file

@ -17,7 +17,15 @@ sudo chmod 644 /etc/ssl/private/friendica.key
sudo chmod 644 /etc/ssl/certs/friendica.crt
sudo cp /tmp/001-friendica.conf /etc/apache2/sites-available/001-friendica.conf
sudo a2enmod rewrite actions ssl
sudo a2enmod rewrite actions ssl 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 ;
} | sudo tee /etc/apache2/conf-available/remoteip.conf > /dev/null
sudo a2enconf remoteip
sudo a2ensite 001-friendica
sudo a2dissite 000-default