2024-04-19 14:40:09 +02:00
|
|
|
{ nixpkgs, ... }:
|
|
|
|
|
2024-04-19 16:13:01 +02:00
|
|
|
let
|
|
|
|
dgn-id = "57ac2e06a00384772bf63f055874ce2fefe4eb0a";
|
|
|
|
in
|
|
|
|
|
2024-04-19 14:40:09 +02:00
|
|
|
{
|
|
|
|
services.stirling-pdf = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-04-19 16:13:01 +02:00
|
|
|
package = nixpkgs.unstable.stirling-pdf.overrideAttrs (old: {
|
|
|
|
patches = (old.patches or [ ]) ++ [
|
|
|
|
(builtins.fetchurl "https://git.dgnum.eu/DGNum/Stirling-PDF/commit/${dgn-id}.patch")
|
|
|
|
];
|
|
|
|
});
|
2024-04-19 14:40:09 +02:00
|
|
|
|
|
|
|
domain = "pdf.dgnum.eu";
|
|
|
|
port = 8084;
|
|
|
|
|
|
|
|
nginx = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
UI_APP_NAME = "DGNum PDF";
|
2024-04-19 14:58:13 +02:00
|
|
|
SYSTEM_DEFAULT_LOCALE = "fr-FR";
|
2024-04-19 14:40:09 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|