RedisInsight / RedisInsight

Redis GUI by Redis

Home Page:https://redis.com/redis-enterprise/redis-insight/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Proxy only handles *.html files in middleware

verbotenj opened this issue · comments

Preconditions (Any important steps we need to know)
Deploy redisinsight in k8s
Set RI_PROXY_PATH to something else than default "/"

Steps to reproduce (How to reproduce what you found step by step)
Call/Curl redisinsight service

Actual behavior (A short description of what you found)
The response returns html but js scripts still reference "/"

Expected behavior (A short description of what you expected to find)
The response should return html with js scripts reference respecting RI_PROXY_PATH

Screenshots (Paste or drag-and-drop a screenshot or a link to a recording)

Additional context (Operating system, version of Redis Insight, Redis database version, Redis module version, database type, connection type, logs, or any other information)

https://github.com/RedisInsight/RedisInsight/blob/main/redisinsight/api/src/middleware/subpath-proxy.middleware.ts#L12