Git Product home page Git Product logo

Comments (6)

tamalsaha avatar tamalsaha commented on May 31, 2024 1

We will keep the old things as is. When we rewrite everything for the new TPR in 1.7, we will review these things. I think there is a good case to be made to have direct support for common HTTP rewrite rules.

from voyager.

skuda avatar skuda commented on May 31, 2024 1

Tested, working fine, thanks!!

from voyager.

tamalsaha avatar tamalsaha commented on May 31, 2024

From @skuda

I needed to add another haproxy rule to get phpmyadmin fully working

this is the final setup of one backend

   reqrep ^(GET|POST|HEAD)\ /1/(.*)     \1\ /\2

   acl hdr_location res.hdr(Location) -m found
   rspirep ^Location:\ (https?://phpmyadmin.local(:[0-9]+)?)?(/.*) Location:\ /1/ if hdr_location

   server server-10.200.65.19 10.200.65.19:80```

This way I got the rewrites needed, this is something that is accomplish in Apache mod_proxy with "ProxyPassReverse"

you can get the details here https://www.haproxy.com/blog/howto-write-apache-proxypass-rules-in-haproxy/ (edited)

without that I was able to see the home but every submit button was broken, because it directed to phpmyadmin.local, not phpmyadmin.local/1

from voyager.

tamalsaha avatar tamalsaha commented on May 31, 2024
  • haproxyRule or rawRule key.
  • Array of strings
  • Prefix auto generated acls with __ prefix

from voyager.

sadlil avatar sadlil commented on May 31, 2024

If we use haproxyRule / backendRules then there is option that we can remove our current existing
headerRule and rewriteRule. But removing those won't be backward compatible. So should we mark those deprecated for now and introduce the new backendRule along side them? @tamalsaha

from voyager.

tamalsaha avatar tamalsaha commented on May 31, 2024

@skuda, We have added new BackendRule that can used to add any custom acl rules for a backend. This can be used to add response headers. See docs here: https://github.com/appscode/voyager/blob/master/docs/user-guide/component/ingress/backend-rule.md

from voyager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.