dependency-track: don't bundle frontend in jar

Bundling the frontend in the jar is deprecated by upstream and causes
the frontend from being serve after weeks of runtime.
This commit is contained in:
Alexander Sieg
2025-03-02 16:16:18 +01:00
parent 28e18569a4
commit 8af0a5abfd
3 changed files with 11 additions and 8 deletions

View File

@@ -509,7 +509,8 @@ in
upstreams.dependency-track.servers."localhost:${toString cfg.port}" = { };
virtualHosts.${cfg.nginx.domain} = {
locations = {
"/".proxyPass = "http://dependency-track";
"/".alias = "${cfg.package.frontend}/dist/";
"/api".proxyPass = "http://dependency-track";
"= /static/config.json".alias = frontendConfigFile;
};
};