Add netbox reverse proxy
This commit is contained in:
parent
f7e00cf2e1
commit
5be1bbe84b
1 changed files with 16 additions and 0 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue