Skip to content

Commit

Permalink
Merge branch 'issue/2534'
Browse files Browse the repository at this point in the history
  • Loading branch information
curtismchale committed Apr 4, 2024
2 parents c31ff5d + b75b350 commit 56e76a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ if [[ $GOOGLE_GIT_TOKEN ]]; then
done < /tmp/redirects.csv
fi

# deny URLS
if [[ $BLOCK_LOGIN ]]; then
echo "RewriteRule ^wp-login.php$ - [F]" >> $htaccess
fi

#if [$TLS == "true" ]; then
# echo 'Adding TLS REDIRECT .htaccess rule'
# echo "RewriteCond %{HTTP_HOST} ^${HOST}\.com [NC]" >> $htaccess
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
SMTP_HOST:
SMTP_PASS:
SMTP_USER:
BLOCK_LOGIN:
WP_REDIS_BACKEND_HOST:
WP_REDIS_BACKEND_AUTH:
ELASTICSEARCH_DOCS_HOST:
Expand Down

0 comments on commit 56e76a6

Please sign in to comment.