Originally published at: https://www.privacyidea.org/run-privacyidea-nginx-reverse-proxy/
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.