forked from DGNum/infrastructure
30 lines
574 B
Nix
30 lines
574 B
Nix
{ nixpkgs, ... }:
|
|
|
|
let
|
|
dgn-id = "f756a0f47e704db815a7af6786f6eb0aec628d6b";
|
|
in
|
|
|
|
{
|
|
services.stirling-pdf = {
|
|
enable = true;
|
|
|
|
package = nixpkgs.unstable.stirling-pdf.overrideAttrs (old: {
|
|
patches = (old.patches or [ ]) ++ [
|
|
(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";
|
|
};
|
|
};
|
|
}
|