================================================================
  NetPol Enterprise Dashboard — Self-Hosted Edition
  Version: 1.0
  https://netpol.io | support@netpol.io
================================================================

REQUIREMENTS
------------
- Python 3.8 or higher
- Network access to your NetPol nodes (port 5001)
- Ports 5011 open on this server (or configure nginx/IIS as proxy)

INSTALLATION
------------
1. Extract this zip to your preferred location
   Windows:  C:\NetPol-Enterprise\
   Linux/Mac: ~/NetPol-Enterprise/

2. Run the installer:
   Windows:  py install.py
   Linux/Mac: python3 install.py

3. Start the dashboard:
   Windows:  py app.py
   Linux/Mac: python3 app.py

4. Open your browser to http://localhost:5011
   Default login: admin / netpol
   IMPORTANT: Change the admin password after first login.

CONNECTING NETPOL NODES
-----------------------
Option A — Self-Registration (recommended)
  1. Create an account at http://localhost:5011/register
  2. Copy your Registration Token (rgt_...)
  3. In NetPol, open Settings → Enterprise Dashboard
  4. Enter this server's URL and paste the Registration Token
  5. Click Save — the node will register automatically

Option B — Manual Registration
  1. Log in as admin
  2. Click + Add Node
  3. Enter the site name and NetPol node serial
  4. Copy the generated API key into NetPol's Enterprise settings

RUNNING AS A SERVICE
--------------------
Linux (systemd):
  sudo cp netpol-enterprise.service /etc/systemd/system/
  sudo systemctl enable netpol-enterprise
  sudo systemctl start netpol-enterprise

Windows (as background process):
  pythonw app.py

NGINX REVERSE PROXY (recommended for production)
-------------------------------------------------
server {
    listen 80;
    server_name enterprise.yourcompany.com;
    location / {
        proxy_pass http://127.0.0.1:5011;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

CONFIGURATION
-------------
- Database:   enterprise.db (created on first run, keep backed up)
- Secret key: secret.key (created on first run, do not share)
- Email:      Edit mailer.py to configure your Resend API key
               and support email address

SUPPORT
-------
Email: support@netpol.io
Web:   https://netpol.io
Enterprise Dashboard: https://enterprise.netpol.io

================================================================
  © 2026 NetPol · Perth, Western Australia
================================================================
