diff --git a/services/netbox/default.nix b/services/netbox/default.nix index e4ba9bb..39bf034 100644 --- a/services/netbox/default.nix +++ b/services/netbox/default.nix @@ -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 ]; }; }