Files
server_cloud_ladkau_de/ansible/roles/k8s/templates/docker-compose.yml.j2
T
ml b15754ba2f Harden against bot floods and add post-provisioning service check
- Traefik rate-limits all routes (60 req/min standard, 300 for Nextcloud)
  and writes access logs to /var/log/traefik/access.log
- Fail2ban watches Traefik access logs and bans IPs after 10 x 403/404
  within 60 s for 24 h
- Nextcloud html directory created as www-data (UID 33) so Apache can
  process .htaccess and serve requests correctly
- scripts/check-services.sh verifies all seven endpoints return the
  expected HTTP status after provisioning
2026-06-28 08:02:45 +02:00

22 lines
675 B
Django/Jinja

# Managed by Ansible — do not edit manually
services:
k8s-placeholder:
image: nginx:alpine
container_name: k8s-placeholder
restart: unless-stopped
volumes:
- {{ k8s_data_dir }}/html:/usr/share/nginx/html:ro
networks:
- traefik_public
labels:
- "traefik.enable=true"
- "traefik.http.routers.k8s.rule=Host(`{{ domain_k8s }}`)"
- "traefik.http.routers.k8s.entrypoints=websecure"
- "traefik.http.routers.k8s.tls.certresolver=letsencrypt"
- "traefik.http.services.k8s.loadbalancer.server.port=80"
- "traefik.http.routers.k8s.middlewares=rate-limit@docker"
networks:
traefik_public:
external: true