2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2024-09-10 22:17:04 +02:00
|
|
|
{ nixpkgs, ... }:
|
2024-07-05 16:29:23 +02:00
|
|
|
|
|
|
|
let
|
2024-10-06 15:29:20 +02:00
|
|
|
###
|
|
|
|
# How to update:
|
|
|
|
# - clone https://git.dgnum.eu/DGNum/Stirling-PDF
|
|
|
|
# - switch to the branch dgn-v0.X.Y where X.Y is the version in production
|
|
|
|
# - fetch upstream changes up to the tagged release in nixos-unstable
|
|
|
|
# - rebase onto the upstream branch, so that the last commit is "feat: Add DGNum customization"
|
|
|
|
# - push to a new branch dgn-v0.A.B where A.B is the new version
|
|
|
|
# - finally, update the commit hash of the customization patch
|
|
|
|
|
2024-11-19 00:13:49 +01:00
|
|
|
dgn-id = "d73e347b1cefe23092bfcb2d3f8a23903410203e";
|
2024-10-12 19:30:36 +02:00
|
|
|
port = 8084;
|
2024-07-05 16:29:23 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2024-12-15 21:26:51 +01:00
|
|
|
disabledModules = [ "services/web-apps/stirling-pdf.nix" ];
|
|
|
|
|
2024-10-12 19:30:36 +02:00
|
|
|
dgn-web.internalPorts.stirling-pdf = port;
|
|
|
|
|
2024-07-05 16:29:23 +02:00
|
|
|
services.stirling-pdf = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-12-07 13:03:35 +01:00
|
|
|
package = nixpkgs.nixos.unstable.stirling-pdf.overrideAttrs (old: {
|
2024-09-10 22:17:04 +02:00
|
|
|
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";
|
2024-10-12 19:30:36 +02:00
|
|
|
inherit port;
|
2024-07-05 16:29:23 +02:00
|
|
|
|
|
|
|
nginx = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
UI_APP_NAME = "DGNum PDF";
|
|
|
|
SYSTEM_DEFAULT_LOCALE = "fr-FR";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|