den-it / ntmap

Network topology map using Netbox as a data source
MIT License
146 stars 14 forks source link

Adaptation of installation instructions and nginx.conf #13

Open LHBL2003 opened 2 years ago

LHBL2003 commented 2 years ago

I installed Netbox a few weeks ago according to the installation instructions: https://docs.netbox.dev/en/stable/installation/

However, I installed with the HTTP server option B (Apache). For borrowing it is important to know that then the NGINX setup will not work. (NGINX service will not start because of the port 80 conflict with Appatche).

I have set up the website almost completely with Appache. But I have decided to reconfigure to NGINX, as this seems to be preferred by NetBox.

If you reconfigure NetBox to NGINX as described in the installation instructions, http redirects to https.

If you now configure ntmap, the NGINX service will not restart because netbox and ntmap want to use port 80.

I have therefore reconfigured ntmap to port 81.

Conclusion: The NTMAP installation guide should recommend that NetBox is set up with NGINX and not Apache. Otherwise, a configuration guide for Apache would be helpful.

The NTMAP configuration /opt/ntmap/install/nginx.conf should not use port 80, otherwise the NGINX service will not start if NetBox is installed on the same server.


Nevertheless, I thank you for the tool. I will now configure my first group :)

pdenessen commented 1 year ago

Hi, it looks like a great tool and I ran in the similar issues. I am using Apache2 instead of NGING and can not use port 80/443 as this is already used by Netbox,

LHBL2003 commented 1 year ago

I can recommend you to install Netbox after option A. I have found that this has always been more advantageous. Even though I only knew Apache so far. You can still exchange it for NGING later. Simply uninstall Apache. And install and configure NGING. Then everything works much better. Most people also describe their instructions with NGING.