You can use nginx to act as a reverse proxy in front of any web application. Kenneth Cummings gave a talk at the ownCloud Conference 2017 how to combine different components to setup such a 2FA reverse proxy. Watch this video on YouTube.
reverse proxy
1 post