Add generate-keys.sh script for SSL and JWT key generation and update examples
- Added `generate-keys.sh` script to automate the generation of SSL certificates and JWT keys for testing. - Updated examples and documentation across Docker, Kubernetes, Swarm, and static directories to include instructions for running the script. - Removed hardcoded .pem files and replaced with dynamically generated keys and certificates. - Emphasized testing-only usage of self-signed certificates.
This commit is contained in:
parent
d3149637b4
commit
3a4b428e46
10 changed files with 162 additions and 317 deletions
|
|
@ -2,6 +2,24 @@
|
|||
|
||||
This directory contains various Docker Compose examples demonstrating different EasyHAProxy configurations.
|
||||
|
||||
## Prerequisites: Generate SSL Certificates
|
||||
|
||||
**IMPORTANT:** Before running any examples, you must generate the required SSL certificates and JWT keys:
|
||||
|
||||
```bash
|
||||
# From the repository root
|
||||
./examples/generate-keys.sh
|
||||
```
|
||||
|
||||
This script automatically generates:
|
||||
- SSL certificates for host1.local and host2.local
|
||||
- JWT keys (jwt_private.pem and jwt_pubkey.pem) for JWT validation examples
|
||||
- All other .pem files needed for testing
|
||||
|
||||
**Note:** These are self-signed certificates for testing only. Do not use in production.
|
||||
|
||||
---
|
||||
|
||||
## Examples Overview
|
||||
|
||||
### 1. Basic Configuration (`docker-compose.yml`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue