Proxy Pass on NGINX INGRESS Controller

1/25/2022

is it possible to replicate this nginx.conf in nginx ingress controller? I have tried different annotations(server-snippet) but they don't seem to replicate the functionality. `

rewrite ^/$ /webapp/ redirect;
rewrite ^//?(/webapp)?$ /webapp/ redirect;
location / {
proxy_pass          http://app:8081/app/;
}

`

-- mthokozisi nkosi
kubernetes
nginx-ingress

0 Answers