Install
In proxmox shell
follow the instructions: https://community-scripts.github.io/ProxmoxVE/scripts?id=netbox
change from apache2 to nginx as web server.
Put in the configuration file (/opt/netbox/netbox/netbox/configuration.py) the plugins you want to add right in the netbox service and install them locally with pip. Then remember to change the name of the nginx server name to your DNS name. You should use only the port 80 and not the 443 and remove the certificates from the nginx configuration. You have to check both the sites-available and the sites-enabled to remove the requested cerficates. Caddy will provide for each needed certificates to make the site secured. (SSL certificates)
The sites-enabled configurations should be something like this (you could use exacly the same configuration for the file inner the sites-available folder):
server {
listen [::]:80 ipv6only=off;
server_name netbox.eagleprojects.cloud;
client_max_body_size 25m;
location /static/ {
alias /opt/netbox/netbox/static/;
}
location / {
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}