Skip to content

Commit

Permalink
Merge pull request #66 from KP64/feat/stirling-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama authored Jan 17, 2025
2 parents ac1aa51 + e0cf2cd commit 5ef0081
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions icons/services/stirling-pdf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions nixos/extractors/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,16 @@ in {
};
};

stirling-pdf = let
address = config.services.stirling-pdf.environment.SERVER_HOST or null;
port = config.services.stirling-pdf.environment.SERVER_PORT or null;
in
mkIf config.services.stirling-pdf.enable {
name = "Stirling-PDF";
icon = "services.stirling-pdf";
details.listen = mkIf (address != null && port != null) {text = "${address}:${toString port}";};
};

traefik = let
dynCfg = config.services.traefik.dynamicConfigOptions;
in
Expand Down

0 comments on commit 5ef0081

Please sign in to comment.