nginx入口控制器根路径(/)映射到/ path

时间:2020-05-28 15:35:29

标签: nginx kubernetes kubernetes-ingress nginx-ingress

我有一个在kubernetes上运行的nodejs应用程序,URL是getApplicationSupportDirectory。相同的应用程序还提供“ / api”。我的要求是,当我按下https://example.com时,在后台它应该按下https://example.com,但是在前端,它应该只显示https://example.com/api

我已经尝试使用https://example.com对nginx ingress进行以下配置,但是它不起作用。

nginx.ingress.kubernetes.io/rewrite-target: /api

0 个答案:

没有答案