Tom Hubrecht
a50637d55e
Some checks failed
Check meta / check_meta (pull_request) Successful in 18s
Check meta / check_dns (pull_request) Successful in 18s
Run pre-commit on all files / check (push) Successful in 26s
Check workflows / check_workflows (pull_request) Failing after 25s
Build all the nodes / bridge01 (pull_request) Successful in 1m6s
Build all the nodes / geo02 (pull_request) Successful in 54s
Build all the nodes / geo01 (pull_request) Successful in 56s
Build all the nodes / rescue01 (pull_request) Successful in 1m3s
Build all the nodes / storage01 (pull_request) Successful in 1m6s
Run pre-commit on all files / check (pull_request) Successful in 26s
Build all the nodes / web01 (pull_request) Failing after 51s
Build all the nodes / web02 (pull_request) Successful in 58s
Build all the nodes / vault01 (pull_request) Successful in 1m19s
Build all the nodes / compute01 (pull_request) Successful in 5m31s
Build all the nodes / web03 (pull_request) Successful in 2m39s
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ nixpkgs, ... }:
|
|
|
|
let
|
|
###
|
|
# 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
|
|
|
|
dgn-id = "d73e347b1cefe23092bfcb2d3f8a23903410203e";
|
|
port = 8084;
|
|
in
|
|
|
|
{
|
|
dgn-web.internalPorts.stirling-pdf = port;
|
|
|
|
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";
|
|
inherit port;
|
|
|
|
nginx = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
};
|
|
|
|
environment = {
|
|
UI_APP_NAME = "DGNum PDF";
|
|
SYSTEM_DEFAULT_LOCALE = "fr-FR";
|
|
};
|
|
};
|
|
}
|