【问题标题】:anyway to configure a URL prefix for prestosql web UI无论如何都要为 prestosql Web UI 配置 URL 前缀
【发布时间】:2020-12-30 07:41:15
【问题描述】:

鉴于 prestosql 集群已启动并监听 localhost:8080,我发现它会将请求重定向到 http://localhost:8080/ui/

> curl -v http://localhost:8080/
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
> Accept: */*
> Referer: 
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 303 See Other
< Date: Thu, 02 Jul 2020 14:07:10 GMT
< Location: http://localhost:8080/ui/
< Content-Length: 0

是否支持/prestosql 之类的前缀,以便它可以将请求从/prestosql 重定向到/prestosql/ui 而不是/ui/

该场景是关于在 prestosql 前面使用网关,然后通过 URL 重写路由请求。例如,Nginx/HAProxy 或 Istio 虚拟服务。

【问题讨论】:

  • 不,但我希望这是您可以在代理中执行的操作。

标签: presto trino


【解决方案1】:

这是不可能的,而且需要相当多的工作,因为 Presto 的 UI HTML 和 javascript 代码并期望在 /ui/... 路径上提供各种资源。

https://github.com/prestosql/presto/issues/3706查看之前的讨论

【讨论】:

  • 感谢您的链接。我想代理 prestosql 时需要同时公开/ui/v1
猜你喜欢
  • 2015-06-08
  • 2018-11-15
  • 2017-10-30
  • 2017-09-19
  • 1970-01-01
  • 2021-09-23
  • 2019-11-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多