Add netbox reverse proxy

This commit is contained in:
Théo Barnouin 2024-09-24 16:26:53 +02:00
parent f7e00cf2e1
commit 5be1bbe84b

View file

@ -52,6 +52,22 @@ in
};
secretKeyFile = "/run/secrets/netbox/keyFile";
};
services.nginx = {
enable = true;
user = "netbox";
clientMaxBodySize = "25m";
virtualHosts."192.168.1.45" = {
locations = {
"/" = {
proxyPass = "http://localhost:8001";
};
"/static/" = { alias = "${config.services.netbox.dataDir}/static/"; };
};
forceSSL = false;
enableACME = false;
};
};
networking.firewall.allowedTCPPorts = [ 8001 ];
};
}