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/;
}
`