Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Readme ? #38

Open
mysther opened this issue Jan 18, 2023 · 2 comments
Open

Error in Readme ? #38

mysther opened this issue Jan 18, 2023 · 2 comments
Labels
area/documentation Improvements or additions to documentation contributor/waiting-for-feedback Feedback from the contributor is needed

Comments

@mysther
Copy link

mysther commented Jan 18, 2023

Hello, in readme file you have the following example :

#Example
- Rule:
  Name: 'Header addition'
  Header: 'X-Custom-2'
  Value: 'True'
  Type: 'Set'
- Rule:
  Name: 'Header deletion'
  Header: 'X-Custom-2'
  Type: 'Del'
- Rule:
  Name: 'Header join'
  Header: 'X-Custom-2'
  Value: 'False'
  Type: 'Set'

But in doesn't work at all ...

The following code works :

Rules:
  - Name: "Rewrite to http"
    Type: "RewriteValueRule"
    Header: "Destination"
    Value: "https://(.*)"
    ValueReplace: "http://$1"

Am I the only one in this case? Am I missing something?

I searched for four hours why I couldn't get the plugin to work due to this :')

@tomMoulard
Copy link
Owner

Hello @mysther,

Thanks for your interest in the Traefik plugin !

What do you mean by 'it doesn't work at all' ? Can you show some logs or a reproducible use case ?

@tomMoulard tomMoulard added the area/documentation Improvements or additions to documentation label Jan 18, 2023
@tomMoulard tomMoulard added the contributor/waiting-for-feedback Feedback from the contributor is needed label Mar 23, 2023
@dontcrash
Copy link

dontcrash commented Apr 24, 2023

Pretty self explanatory here, when specifying rules the documentation shows it one way but the way that worked for the user was by writing it like this in the dynamic config:

http:
  middlewares:
    header-change:
      plugin:
        htransformation:
          Rules:
            - Name: "Replace nginx header"
              Header: "server"
              Type: "Set"
              Value: "Test"

On a side-note, this doesn't even work for me using either the specified format in documentation or what the OP was suggesting worked for them, I can still see the header: server: nginx/1.23.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation contributor/waiting-for-feedback Feedback from the contributor is needed
Projects
None yet
Development

No branches or pull requests

3 participants