A secure Docker-based Nginx setup with advanced web security features for API gateway deployments.
A production-ready secure HTTP Nginx setup with Docker featuring ModSecurity WAF, rate limiting, security headers, and token-based authentication. Designed for secure API gateway deployments with minimal configuration required.
This tool is designed for developers and system administrators who need a secure and production-ready Nginx configuration for handling API requests. It simplifies the deployment of a secure web server with built-in protections against common vulnerabilities.
Ensure Docker and Docker Compose are installed before proceeding with the setup. Consider configuring SSL/TLS for production environments.
Clone this repository: git clone git@github.com:luckyfoxdesign/docker-nginx-http.git
Change directory: cd docker-nginx-http
Configure your environment variables by editing the .env file
Start the services: docker-compose up -d
Verify the installation: curl http://localhost/healthz
git clone git@github.com:luckyfoxdesign/docker-nginx-http.git
Clones the repository to your local machine.
docker-compose up -d
Starts the Docker services in detached mode.
curl http://localhost/healthz
Checks the health of the deployed service.
curl -H "Authorization: Bearer your-secret-token-here" http://yourdomain.com/api/signal
Accesses a protected API endpoint using a bearer token.