mirror of https://gitlab.crans.org/nounous/nixos
26 lines
511 B
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}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|