0

我们想在kong中为后端服务设置proxy_set_header X-ProxyContextPath (在nginx中它将proxy_set_header X-ProxyContextPath /apigw/doc-shared/nifi;在位置配置下),我们已经创建了kong服务和路由

apiVersion: configuration.ckng.com/v1
kind: KongRoute
metadata:
  name: doc-apcore-nifi-configprop-nifi-route-root
spec:
  paths:
  - /nifi
  preserve_host: true
  strip_path: true
---
apiVersion: configuration.ckng.com/v1
kind: KongService
metadata:
  name: doc-apcore-nifi-configprop-nifi-root
spec:
  host: doc-apcore-nifi-configprop-nifi-gui-ingress.doc-apcore
  path: /apigw/doc-apcore/nifi
  port: 8080

拨打电话时, curl -L -k https://fqdn/apigw/doc-apcore/nifi/ 我们没有看到 X-ProxyContextPath 作为标头的一部分发送

4

0 回答 0