I have a very simple config but didn't find a direct answer yet. So there is nginx-ingress and gunicorn service behind. I want to protect gunicorn backend from all the bots bruteforcing urls. So I want to redirect only few URLs like:
- /
- /one/*
- /two/*
- /three/*
What is the simplest ingress config to achieve this goal?
You can try this config:
In this example: