Mobile ciphers
This commit is contained in:
parent
21a3b97f6b
commit
58ecc2d8d5
|
@ -166,7 +166,12 @@ function change_website_settings {
|
||||||
cd $WEBSITES_DIRECTORY
|
cd $WEBSITES_DIRECTORY
|
||||||
for file in `dir -d *` ; do
|
for file in `dir -d *` ; do
|
||||||
sed -i "s|ssl_protocols .*|ssl_protocols $SSL_PROTOCOLS;|g" $WEBSITES_DIRECTORY/$file
|
sed -i "s|ssl_protocols .*|ssl_protocols $SSL_PROTOCOLS;|g" $WEBSITES_DIRECTORY/$file
|
||||||
sed -i "s|ssl_ciphers .*|ssl_ciphers '$SSL_CIPHERS';|g" $WEBSITES_DIRECTORY/$file
|
if ! grep -q "Mobile compatible ciphers" $WEBSITES_DIRECTORY/$file; then
|
||||||
|
|
||||||
|
sed -i "s|ssl_ciphers .*|ssl_ciphers '$SSL_CIPHERS';|g" $WEBSITES_DIRECTORY/$file
|
||||||
|
else
|
||||||
|
sed -i "s|ssl_ciphers .*|ssl_ciphers '$SSL_CIPHERS_MOBILE';|g" $WEBSITES_DIRECTORY/$file
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
echo $'Web security settings changed'
|
echo $'Web security settings changed'
|
||||||
|
|
Loading…
Reference in New Issue