Compare commits
2 Commits
main
...
feature/so
Author | SHA1 | Date | |
---|---|---|---|
3fc856c77a | |||
3662ab2605 |
12
README.md
12
README.md
@ -80,4 +80,14 @@ labels:
|
||||
|
||||
I mount the access.log for crowdsec firewall to read.
|
||||
|
||||
PS: Because I access my traefik dashboard through my local network. I commented out the authetication method for dashboard.
|
||||
PS: Because I access my traefik dashboard through my local network. I commented out the authetication method for dashboard.
|
||||
|
||||
## Discussion and Changelog
|
||||
|
||||
1. Traefik vs Nginx
|
||||
- Performance: Nginx is still better at high traffic. After all it is written in C. Traefik 3 though claims it has higher 20% performance than before. The latency still showed a little higher than nginx.
|
||||
- Docker Deployment Ease: Traefik is easier for docker service deployment. In my environment, I can assign each docker stack with labels and then guides the traefik to add Let's encrypt SSL.
|
||||
|
||||
2. ChangeLog:
|
||||
|
||||
- 2025.4.18 Add Souin HTTP Cache Middleware.
|
@ -6,7 +6,7 @@ services:
|
||||
# ports:
|
||||
# - 10.0.0.225:80:80
|
||||
# - 10.0.0.225:443:443
|
||||
# - 192.168.50.4:8080:8080
|
||||
# - 192.168.50.4:9090:9090
|
||||
# - 192.168.50.4:80:80
|
||||
# - 192.168.50.4:443:443 # Added port mapping for the dashboard
|
||||
restart: unless-stopped
|
||||
@ -33,9 +33,15 @@ services:
|
||||
- "com.centurylinklabs.watchtower.enable=true" # Added label for Watchtower
|
||||
# "traefik.http.middlewares.auth.basicauth.usersfile=/dashboard_authfile"
|
||||
- "traefik.http.services.traefik.loadbalancer.server.port=9090"
|
||||
|
||||
#networks:
|
||||
redis:
|
||||
image: valkey/valkey:latest
|
||||
container_name: traefik-redis
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
internal_traefik_default:
|
||||
ipv4_address: 172.20.0.100
|
||||
networks:
|
||||
# traefik_default:
|
||||
# external: true
|
||||
# internal_traefik_default:
|
||||
# external: true
|
||||
internal_traefik_default:
|
||||
external: true
|
||||
|
16
dynamic.yml
16
dynamic.yml
@ -30,6 +30,22 @@ http:
|
||||
- application/javascript
|
||||
- application/json
|
||||
- text/plain
|
||||
http-cache:
|
||||
plugin:
|
||||
souin:
|
||||
default_cache:
|
||||
ttl: 10s
|
||||
default_cache_control: public, max-age=600
|
||||
redis:
|
||||
url: 172.20.0.100://redis:6379
|
||||
allowed_http_verbs:
|
||||
- GET
|
||||
- HEAD
|
||||
- POST
|
||||
log_level: debug
|
||||
api:
|
||||
souin: {}
|
||||
prometheus: {}
|
||||
routers:
|
||||
block-direct-access:
|
||||
rule: "HostRegexp(`{host:.+}`)" # Matches any host
|
||||
|
@ -103,3 +103,6 @@ experimental:
|
||||
bouncer:
|
||||
moduleName: github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin
|
||||
version: v1.4.2
|
||||
souin:
|
||||
moduleName: github.com/darkweak/souin
|
||||
version: v1.7.6
|
||||
|
Loading…
x
Reference in New Issue
Block a user