mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:50:11 +00:00
Aligining the Dockerfile with the version in friendica/docker repository
This commit is contained in:
parent
07d6500700
commit
f1301aec73
9 changed files with 157 additions and 29 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue