Setting allowed Elliptic Curves

We have a requirement where we need to disallow 25519 elliptic curve. I can't seem to find the setting for it. Can someone point me on how to set this?