nixos/hosts/vm/livre/stirling.nix

26 lines
511 B
Nix

{ config, ... }:
{
services.stirling-pdf = {
enable = true;
environment = {
ENDPOINTS_TOREMOVE = "url-to-pdf";
INSTALL_BOOK_AND_ADVANCED_HTML_OPS = "true";
SERVER_PORT = 8000;
SYSTEM_DEFAULTLOCALE = "fr-FR";
};
};
services.nginx = {
enable = true;
virtualHosts = {
"pdf.crans.org" = {
locations."/" = {
proxyPass = "http://localhost:${toString config.services.stirling-pdf.environment.SERVER_PORT}";
};
};
};
};
}