Update logging level for plugin loading and extend static example documentation
- Changed logging level from `info` to `debug` in plugin loading to reduce verbosity during runtime. - Significantly expanded `examples/static/README.md` with new sections, examples (basic, certbot, deny pages, JWT validator), and detailed usage instructions. - Improved `examples/docker/docker-compose-changed-label.yml` with clearer redirect syntax using JSON for better readability. - Fixed handling of empty or invalid JSON in labels within `easymapping` with fallback to default values and error logging. - Added additional entries to `.gitignore` to exclude dynamic and temporary files like auto-generated configuration files and certificates.
This commit is contained in:
parent
3a4b428e46
commit
99f4ff325b
7 changed files with 384 additions and 403 deletions
|
|
@ -145,6 +145,25 @@ labels:
|
|||
myproxy.http.port: 80
|
||||
```
|
||||
|
||||
|
||||
**Usage:**
|
||||
```bash
|
||||
docker compose -f docker-compose-changed-label.yml up -d
|
||||
```
|
||||
|
||||
**Test:**
|
||||
```bash
|
||||
# Test load balancing (hostname changes between containers)
|
||||
curl -H "Host: www.helloworld.com" localhost:19901
|
||||
# Response: f6d8d45b7411
|
||||
curl -H "Host: www.helloworld.com" localhost:19901
|
||||
# Response: 59b213cb8592
|
||||
|
||||
# Test redirect
|
||||
curl -I -H "Host: google.helloworld.com" localhost:19901
|
||||
# Should redirect to: www.google.com/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 5. Portainer Integration (`docker-compose-portainer.yml`)
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ services:
|
|||
container:
|
||||
image: byjg/static-httpserver
|
||||
labels:
|
||||
haproxy.http.redirect: host1.local--https://host1.local
|
||||
haproxy.http.redirect: '{"host1.local": "https://host1.local"}'
|
||||
haproxy.http.host: host1.local
|
||||
haproxy.http.port: 80
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue