-
Notifications
You must be signed in to change notification settings - Fork 74
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
Running Redis UI on a subdirectory #43
Comments
it is a big refactor, i am not sure if i am going to implement, feature request is welcome.... |
@vojtechzicha If you use ingress-nginx you can use it to rewrite urls on routing You have to add annotation to ingress nginx.ingress.kubernetes.io/rewrite-target: /$2 And create path like this - path: /myroute(/|$)(.*)
backend:
serviceName: myservice
servicePort: http Nginx will receive |
I can't get nginx rewrite working. Sorry my client side dev skills are limited, but is it not possible to add the following to here? <base href="./"> |
nope, other people could fix this issue |
So it's now working just not using rewrite below is my solution for next apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: redisui-ingress
labels:
app: redisui-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/app-root: /redis
spec:
tls:
- hosts:
- www.example.com
secretName: tls-secret-redisui
rules:
- host: www.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: redisui-svc
port:
number: 7843 Official rewrite docs; |
Tried your docker image, unfortunately it is impossible to use it with subfolder path. So switched to the https://github.com/joeferner/redis-commander, this is also a good tool. |
ok |
It is a shame this does not have a solution in place. |
thanks very much! |
Hi,
I've tried deploying Redis UI to Kubernetes Ingress and I've stumbled upon an issue running on non-root path.
When published via following definition:
The application loads on
https://example.com/redis/
, but the JS and page itself still loads ashttps://example.com/bundle.js
.Usually in similar docker apps, there is an environment variable that can provide the path, but I cannot find any in this project.
Is there a way to run the app on non-root path?
If there is a hint where to do the change in code, I can try doing pull request but haven't find the right place, so any hints would be welcomed too.
The text was updated successfully, but these errors were encountered: