Comments (6)
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.
Tested, working fine, thanks!!
from voyager.
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.
-
haproxyRule
orrawRule
key. - Array of strings
- Prefix auto generated acls with
__
prefix
from voyager.
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.
@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)
- Development guide is out of date
- Add support for LBType LoadBalancer for Yandex Cloud Provider
- The Server Could not find the requested Resource HOT 3
- Deprecation Alert: Cloud_Provider: Openstack to external HOT 1
- Cannot deploy Ingress Server anymore on AKS cluster on version 1.18.8 HOT 2
- Voyager unable to update haproxy.cfg - must have at most 1048576 characters HOT 1
- extensions/v1beta1 Ingress is deprecated HOT 1
- Upgrade from v12.0.0-rc.1 to v12.0.0.0 return error
- Prometheus Monitoring causes panic "invalid memory address or nil pointer dereference" HOT 7
- Deployment and Service not being creating HOT 1
- Rate limiting return 'Forbidden' (403) instead of 'Too Many Requests' (429)
- Unable to use Voyager sticky session (chart version 12.0.0/app version 12.0.0) for jnlp applets HOT 2
- creating voyager ingress on k8s version 1.20 is failing HOT 8
- Is it possible to create UDP rule for AWS load balancers?
- stats pod not being created on EKS cluster 1.19 with v12.0.0 HOT 2
- kubelet Error: ImagePullBackOff HOT 3
- Does Voyager support circuit breaker pattern and api response encryption?
- kubelet Error: ImagePullBackOff HOT 2
- Skip running preview-website workflow in forks with credentials
- Voyager -v11.0.0 the server could not find the requested resource HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voyager.