Install NGINX Proxy Manager with open-appsec managed from central WebUI (SaaS)
Prerequisites
Access to a SaaS tenant on my.openappsec.io (WebUI for SaaS management) Follow the instructions available here:
Agent profile created for open-appsec Docker deployment in SaaS tenant Follow the instructions available here. Once done, don't forget to copy the profile token after policy installation as this is needed in the installation steps further below:
Linux machine with:
Docker and Docker Compose installed
Root Permissions
If you want to migrate from an existing NGINX Proxy Manager deployment to use this integration with open-appsec, please check out specific the FAQ further below on this page for specific instructions and further information.
To deploy NGINX Proxy Manager with open-appsec integration follow the steps below:
Create a docker-compose.yaml file with the content below, it can be downloaded as follows:
docker-compose.yaml content:
Replace the
<TOKEN>
parameter in the docker-compose.yaml file with the token you copied from the profile in the WebUI before (see Prerequisites section above).Start the deployment of all relevant containers using
docker-compose
:
Check if the appsec-npm and the appsec-agent containers are up and running:
Congratulations, you successfully deployed NGINX Proxy Manager with open-appsec integration!
For Production usage you might want to switch from using the Basic to the more accurate Advanced Machine Learning model, as described here:
Now you can login with your web browser to the WebUI of NGINX Proxy Manager with open-appsec integration as follows:
At first login please use the following default administrator user credentials: E-mail address: admin@example.com Password: changeme
You will then be prompted to provide your own user details and asked to change the password, before being presented with the NGINX Proxy Manager Dashboard view:
Configuration
To learn how to use NGINX Proxy Manager (NPM) see project documentation: https://nginxproxymanager.com (NPM usage and configuration will not be explained here).
Once you created a new Proxy Host within NGINX Proxy Manager WebUI you can now configure open-appsec protection for it in the open-appsec WebUI (https://my.openappsec.io).
In the open-appsec Web UI: Navigate to the Agents tab and ensure the new agent is successfully connected.
In the open-appsec Web UI: Create one or more assets defining the specific resources that open-appsec should protect and don't forget to install the policy afterwards. One typical approach would be to create one asset in the open-appsec WebUI per each "Proxy Host" you configured in the NGINX Proxy Manager WebUI. This would allow you to have individual open-appsec security settings per each Proxy Host configured in NPM. All required steps are explained here:
Last updated