I have nginx with following configuration:
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 1g;
client_body_buffer_size 128k;
proxy_connect_timeout 120;
proxy_send_timeout 240;
proxy_read_timeout 240;
proxy_buffers 32 4k;
proxy_hide_header Strict-Transport-Security;
proxy_hide_header Content-Type;
add_header Content-Type application/json;
I would like to translate my nginx config to kubernetes ingress-nginx (Ingress resource). Is there a way to implement this config using kubernetes Ingress resources? Reading ingress-nginx docs I haven't found how to map proxy_pass or multiple rewrites to Ingress resource. I would appreciate ref to some detailed doc or sample with similar config.