{"id":15672934,"url":"https://github.com/xcid/traefik-plugin-rewrite-headers","last_synced_at":"2025-05-06T22:08:32.632Z","repository":{"id":44113895,"uuid":"399372730","full_name":"XciD/traefik-plugin-rewrite-headers","owner":"XciD","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-19T06:32:08.000Z","size":12,"stargazers_count":20,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T22:08:19.393Z","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/XciD.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-24T07:22:11.000Z","updated_at":"2025-04-08T07:23:56.000Z","dependencies_parsed_at":"2024-06-19T09:16:59.722Z","dependency_job_id":"233177d8-7dde-470e-9b62-538f7a1f4a08","html_url":"https://github.com/XciD/traefik-plugin-rewrite-headers","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"traefik/plugindemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XciD%2Ftraefik-plugin-rewrite-headers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XciD%2Ftraefik-plugin-rewrite-headers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XciD%2Ftraefik-plugin-rewrite-headers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XciD%2Ftraefik-plugin-rewrite-headers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XciD","download_url":"https://codeload.github.com/XciD/traefik-plugin-rewrite-headers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252776581,"owners_count":21802468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-03T15:33:48.952Z","updated_at":"2025-05-06T22:08:32.615Z","avatar_url":"https://github.com/XciD.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rewrite Header\n\nRewrite header is a middleware plugin for [Traefik](https://traefik.io) which replace a header in the response\n\n## Configuration\n\n### Static\n\n```yaml\npilot:\n  token: \"xxxx\"\n\nexperimental:\n  plugins:\n    rewriteHeaders:\n      modulename: \"github.com/XciD/traefik-plugin-rewrite-headers\"\n      version: \"v0.0.4\"\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/). \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            - header: \"Location\"\n              regex: \"^http://(.+)$\"\n              replacement: \"https://$1\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcid%2Ftraefik-plugin-rewrite-headers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcid%2Ftraefik-plugin-rewrite-headers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcid%2Ftraefik-plugin-rewrite-headers/lists"}