configuration de stirling-pdf

4-message-d-erreur-en-cas-d-echec-de-sudo
korenstin 2024-12-07 17:24:52 +01:00
parent 83bcc45635
commit a0af2f08b2
3 changed files with 26 additions and 1 deletions

View File

@ -37,6 +37,7 @@
apprentix = nixosSystem { apprentix = nixosSystem {
specialArgs = inputs; specialArgs = inputs;
modules = [ ./hosts/vm/apprentix ]; modules = [ ./hosts/vm/apprentix ];
};
livre = nixosSystem { livre = nixosSystem {
specialArgs = inputs; specialArgs = inputs;

View File

@ -1,4 +1,4 @@
{ ... }: { config, ... }:
{ {
imports = [ imports = [
@ -6,10 +6,20 @@
./networking.nix ./networking.nix
../../../modules ../../../modules
../../../modules/services/nginx.nix
../../../modules/services/stirling.nix
]; ];
networking.hostName = "livre"; networking.hostName = "livre";
boot.loader.grub.devices = [ "/dev/sda" ]; boot.loader.grub.devices = [ "/dev/sda" ];
services.nginx.virtualHosts = {
"pdf.crans.org" = {
locations."/" = {
proxyPass = "http://localhost:${toString config.services.stirling-pdf.environment.SERVER_PORT}";
};
};
};
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View File

@ -0,0 +1,14 @@
{ config, ... }:
{
services.stirling-pdf = {
enable = true;
environment = {
csrfDisabled = "false";
ENDPOINTS_TOREMOVE = "url-to-pdf";
INSTALL_BOOK_AND_ADVANCED_HTML_OPS = "true";
SERVER_PORT = 8000;
SYSTEM_DEFAULTLOCALE = "fr-FR";
};
};
}