Security hardening nginx

This commit is contained in:
David Petric
2023-04-07 19:11:46 +02:00
parent 4d5c5cbf58
commit 1d0a36ae45
2 changed files with 128 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
# Ansible-WordPress-Nginx-Docker
This Ansible project automates the setup and configuration of an Ubuntu machine to host a WordPress website using Nginx, PHP, Docker, MySQL, and Redis.
This Ansible project automates the setup and configuration of an Ubuntu machine to host a WordPress website using Nginx, PHP, Docker, MySQL, and Redis. The Nginx vhost configuration is hardened for improved security.
## Features
@@ -8,7 +8,7 @@ The Ansible playbook in this project will:
1. Update Ubuntu packages
2. Install Nginx
3. Configure Nginx
3. Configure Nginx with hardened vhost settings
4. Install PHP
5. Configure PHP
6. Install WordPress
@@ -43,9 +43,7 @@ Run the playbook:
ansible-playbook -i inventory/target.ini setup_server.yml
```
After the playbook has run successfully, you should have a fully functional WordPress website running on your Ubuntu machine with Nginx, PHP, MySQL, and Redis.
Please make sure to install Redis plugin which already has a pre-set configuration
After the playbook has run successfully, you should have a fully functional WordPress website running on your Ubuntu machine with Nginx, PHP, MySQL, and Redis, with a hardened Nginx vhost configuration.
## Variables