2024-09-10 22:17:04 +02:00
|
|
|
{ nixpkgs, ... }:
|
2024-07-05 16:29:23 +02:00
|
|
|
|
|
|
|
let
|
2024-09-10 22:17:04 +02:00
|
|
|
dgn-id = "f756a0f47e704db815a7af6786f6eb0aec628d6b";
|
2024-07-05 16:29:23 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
services.stirling-pdf = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-09-10 22:17:04 +02:00
|
|
|
package = nixpkgs.unstable.stirling-pdf.overrideAttrs (old: {
|
|
|
|
patches = (old.patches or [ ]) ++ [
|
2024-07-05 16:29:23 +02:00
|
|
|
(builtins.fetchurl "https://git.dgnum.eu/DGNum/Stirling-PDF/commit/${dgn-id}.patch")
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
|
|
|
domain = "pdf.dgnum.eu";
|
|
|
|
port = 8084;
|
|
|
|
|
|
|
|
nginx = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
UI_APP_NAME = "DGNum PDF";
|
|
|
|
SYSTEM_DEFAULT_LOCALE = "fr-FR";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|