set $args $args&host=com;
proxy_redirect off;
add_header X-Proxy-Cache $upstream_cache_status;
nginx.ingress.kubernetes.io/rewrite-target: /public/api/v0/config
name: mvp.site.com.admin.config
namespace: stage
spec:
rules:
- host: site.com
http:
paths:
- backend:
serviceName: edge
servicePort: 80
path: /admin/config
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
set $args $args&host=com;
proxy_redirect off;
add_header X-Proxy-Cache $upstream_cache_status;
nginx.ingress.kubernetes.io/rewrite-target: /public/api/v0/config/ufc
name: mvp.site.com.com.admin.config.ufc
namespace: stage
spec:
rules:
- host: site.com
http:
paths:
- backend:
serviceName: edge
servicePort: 80
path: /admin/config/ufc
и тоже пложишь вот такую шляпу?
если набо будет
Обсуждают сегодня