{"id":29645004,"url":"https://github.com/virtualzone/rewriteheaders","last_synced_at":"2025-07-22T01:11:05.307Z","repository":{"id":129022713,"uuid":"461492703","full_name":"virtualzone/rewriteheaders","owner":"virtualzone","description":"Rewrite HTTP Response Headers.","archived":false,"fork":false,"pushed_at":"2022-02-20T16:18:15.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T07:27:43.755Z","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/virtualzone.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":"2022-02-20T13:15:37.000Z","updated_at":"2024-08-08T18:14:51.000Z","dependencies_parsed_at":"2023-04-30T18:47:57.389Z","dependency_job_id":null,"html_url":"https://github.com/virtualzone/rewriteheaders","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/virtualzone/rewriteheaders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Frewriteheaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Frewriteheaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Frewriteheaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Frewriteheaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virtualzone","download_url":"https://codeload.github.com/virtualzone/rewriteheaders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Frewriteheaders/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266405776,"owners_count":23923610,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-07-22T01:11:04.734Z","updated_at":"2025-07-22T01:11:05.293Z","avatar_url":"https://github.com/virtualzone.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rewrite Header\nRewrite Headers is a middleware plugin for [Traefik](https://traefik.io) which replaces HTTP response headers using regular expressions.\n\nBased on: https://github.com/vincentinttsh/rewriteheaders\n\n## Configuration\n\n### Static\n\n```yaml\npilot:\n  token: \"xxxx\"\n\nexperimental:\n  plugins:\n    rewriteHeaders:\n      modulename: \"github.com/virtualzone/rewriteheaders\"\n      version: \"v0.1.0\"\n```\n\n### Dynamic\n\nTo configure the Rewrite Headers plugin, 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 HTTP response 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%2Fvirtualzone%2Frewriteheaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirtualzone%2Frewriteheaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtualzone%2Frewriteheaders/lists"}