{"id":37545989,"url":"https://github.com/bitrvmpd/traefik-plugin-rewrite-headers","last_synced_at":"2026-01-16T08:50:55.191Z","repository":{"id":64297898,"uuid":"565605343","full_name":"bitrvmpd/traefik-plugin-rewrite-headers","owner":"bitrvmpd","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-13T05:53:11.000Z","size":10,"stargazers_count":6,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T00:47:13.559Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitrvmpd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-13T22:58:44.000Z","updated_at":"2024-05-31T09:10:25.000Z","dependencies_parsed_at":"2023-01-15T09:00:49.982Z","dependency_job_id":null,"html_url":"https://github.com/bitrvmpd/traefik-plugin-rewrite-headers","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bitrvmpd/traefik-plugin-rewrite-headers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrvmpd%2Ftraefik-plugin-rewrite-headers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrvmpd%2Ftraefik-plugin-rewrite-headers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrvmpd%2Ftraefik-plugin-rewrite-headers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrvmpd%2Ftraefik-plugin-rewrite-headers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitrvmpd","download_url":"https://codeload.github.com/bitrvmpd/traefik-plugin-rewrite-headers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrvmpd%2Ftraefik-plugin-rewrite-headers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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-16T08:50:54.578Z","updated_at":"2026-01-16T08:50:55.181Z","avatar_url":"https://github.com/bitrvmpd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rewrite Headers\n\nInspired by: https://github.com/XciD/traefik-plugin-rewrite-headers\n\nRewrite headers is a middleware plugin for [Traefik](https://traefik.io) which replace a header in the request and/or response\n\n## Configuration\n\n### Static\n\n```yaml\n\nexperimental:\n  plugins:\n    rewriteHeaders:\n      modulename: \"github.com/bitrvmpd/traefik-plugin-rewrite-headers\"\n      version: \"v0.0.1\"\n```\n\n### Dynamic\n\nTo configure the Rewrite Request Header 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/).\nThe following example creates and uses the rewriteHeaders middleware plugin to modify the Location header\n\n```yaml\nhttp:\n  routes:\n    my-router:\n      rule: \"Host(`localhost`)\"\n      service: \"my-service\"\n      middlewares : \n        - \"rewriteHeaders\"\n  services:\n    my-service:\n      loadBalancer:\n        servers:\n          - url: \"http://127.0.0.1\"\n  middlewares:\n    rewriteHeaders:\n      plugin:\n        rewriteHeaders:\n          rewrites:\n            request:\n              - header: Location\n                regex: \"^http://(.+)$\"\n                replacement: \"https://$1\"\n            response:\n              - header: Location\n                regex: \"^http://(.+)$\"\n                replacement: \"https://$1\"\n```\n\nLabel based configuration\n\n``` yaml\n- traefik.http.middlewares.rewriteHeaders.plugin.rewriteHeaders.rewrites.request[0].header = Location\n- traefik.http.middlewares.rewriteHeaders.plugin.rewriteHeaders.rewrites.request[0].regex = ^http://(.+)$\n- traefik.http.middlewares.rewriteHeaders.plugin.rewriteHeaders.rewrites.request[0].replacement = https://$1\n- traefik.http.middlewares.rewriteHeaders.plugin.rewriteHeaders.rewrites.response[0].header = Location\n- traefik.http.middlewares.rewriteHeaders.plugin.rewriteHeaders.rewrites.response[0].regex = ^http://(.+)$\n- traefik.http.middlewares.rewriteHeaders.plugin.rewriteHeaders.rewrites.response[0].replacement = https://$1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrvmpd%2Ftraefik-plugin-rewrite-headers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitrvmpd%2Ftraefik-plugin-rewrite-headers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrvmpd%2Ftraefik-plugin-rewrite-headers/lists"}