middlewares

Configure Traefik HTTP middlewares for authentication, path rewriting, redirects, and rate limiting.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/renne/skills --skill middlewares
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: middlewares
Source: https://github.com/renne/skills/tree/main/traefik/middlewares
Command: npx skills add https://github.com/renne/skills --skill middlewares

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the configuration and understanding of Traefik's powerful HTTP middleware system, enabling fine-grained control over request routing, authentication, security, and more.

Core Features & Use Cases

  • Authentication: Implement BasicAuth, DigestAuth, and ForwardAuth for secure access.
  • Path Manipulation: Rewrite URLs using StripPrefix, AddPrefix, ReplacePath, and their regex counterparts.
  • Security: Enforce IP allow lists, add security headers, and manage TLS client certificates.
  • Traffic Control: Apply rate limiting, circuit breakers, and retry mechanisms.
  • Use Case: Secure an API endpoint by adding Basic Authentication and rate limiting to prevent abuse.

Quick Start

Use the middlewares skill to configure Traefik to redirect all HTTP traffic to HTTPS using the redirectScheme middleware.

Frequently Asked Questions about middlewares

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Traefik HTTP middleware to redirect traffic to HTTPS?

Traefik HTTP middleware dynamically modifies requests and responses for routing and security. It provides a comprehensive reference for configuring authentication, path manipulation, redirects, rate limiting, and security enforcement.

How do I secure a Traefik API endpoint with authentication and rate limiting?

You can secure a Traefik API endpoint by applying BasicAuth, DigestAuth, or ForwardAuth middleware. Combine these with the rate limiting middleware to prevent abuse and control traffic to your protected routes.

Can I rewrite URLs and manipulate request paths using Traefik middleware?

Yes, Traefik middleware supports URL rewriting and path manipulation. You can use StripPrefix, AddPrefix, ReplacePath, and their regex counterparts to dynamically modify HTTP request paths during routing.

What security features does Traefik HTTP middleware support for access control?

Traefik middleware supports enforcing IP allow lists, adding security headers, and managing TLS client certificates. These features allow fine-grained control over request security and access management.

Do I need to understand Traefik routing and provider configurations to use HTTP middleware?

Yes, understanding Traefik's routing and provider configurations is required. This middleware Skill facilitates the dynamic modification of HTTP requests and responses, which relies on foundational knowledge of Traefik's routing architecture.

How do I apply traffic control mechanisms like circuit breakers in Traefik?

You can apply traffic control in Traefik by configuring circuit breakers and retry mechanisms within the HTTP middleware. This allows you to manage request flow and prevent cascading failures during high traffic.