{"id":37112110,"url":"https://github.com/mrdrelar/traefik-plugin-rewriteheader","last_synced_at":"2026-01-14T13:16:19.573Z","repository":{"id":57548944,"uuid":"305356012","full_name":"mrdrelar/traefik-plugin-rewriteheader","owner":"mrdrelar","description":"Plugin Rewrite Header for Traefik 2","archived":false,"fork":false,"pushed_at":"2020-10-19T11:47:38.000Z","size":2,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T12:45:18.003Z","etag":null,"topics":["traefik-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrdrelar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-19T11:07:03.000Z","updated_at":"2023-02-06T10:07:46.000Z","dependencies_parsed_at":"2022-08-28T11:31:45.948Z","dependency_job_id":null,"html_url":"https://github.com/mrdrelar/traefik-plugin-rewriteheader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mrdrelar/traefik-plugin-rewriteheader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdrelar%2Ftraefik-plugin-rewriteheader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdrelar%2Ftraefik-plugin-rewriteheader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdrelar%2Ftraefik-plugin-rewriteheader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdrelar%2Ftraefik-plugin-rewriteheader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrdrelar","download_url":"https://codeload.github.com/mrdrelar/traefik-plugin-rewriteheader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdrelar%2Ftraefik-plugin-rewriteheader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["traefik-plugin"],"created_at":"2026-01-14T13:16:18.964Z","updated_at":"2026-01-14T13:16:19.561Z","avatar_url":"https://github.com/mrdrelar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rewrite Header\n\nRewrite header is a middleware plugin for [Traefik](https://traefik.io) which extracts data via regexp from the target header and creates a new with extracted content.\n\n## Configuration\n\n### Static \n\n```toml\n[pilot]\n  token = \"xxxx\"\n\n[experimental.plugins.rewritebody]\n  modulename = \"github.com/mrdrelar/traefik-plugin-rewriteheader\"\n  version = \"v0.0.1\"\n```\n\n\n### Dynamic\n\nTo configure the Rewrite Head plugin you should create a [middleware](https://docs.traefik.io/middlewares/overview/) in your dynamic configuration as explained [here](https://docs.traefik.io/middlewares/overview/). The following example creates and uses the rewritehead middleware plugin to create a new header with extracted data foo from the HTTP request head.\n\n```\n[http]\n  [http.routers]\n    [http.routers.my-router]\n      rule = \"Host(`localhost`)\"\n      service = \"my-service\"\n      middlewares = [\"rewriteheader\"]\n\n  [http.services]\n    [http.services.my-service.loadBalancer]\n      [[http.services.my-service.loadBalancer.servers]]\n        url = \"http://127.0.0.1\"\n\n  [http.middlewares]\n    [http.middlewares.rewriteheader.plugin.dev]\n      fromhead  = \"X-TargetHeader\" //required\n      regex     = \"foo.?\"          //required\n      create    = \"X-NewHeader\"    //required\n      prefix    = \"CN=\"            //optional\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdrelar%2Ftraefik-plugin-rewriteheader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrdrelar%2Ftraefik-plugin-rewriteheader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdrelar%2Ftraefik-plugin-rewriteheader/lists"}