mirror of https://gitlab.crans.org/nounous/nixos
configuration de stirling-pdf
parent
83bcc45635
commit
a0af2f08b2
|
@ -37,6 +37,7 @@
|
|||
apprentix = nixosSystem {
|
||||
specialArgs = inputs;
|
||||
modules = [ ./hosts/vm/apprentix ];
|
||||
};
|
||||
|
||||
livre = nixosSystem {
|
||||
specialArgs = inputs;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -6,10 +6,20 @@
|
|||
./networking.nix
|
||||
|
||||
../../../modules
|
||||
../../../modules/services/nginx.nix
|
||||
../../../modules/services/stirling.nix
|
||||
];
|
||||
|
||||
networking.hostName = "livre";
|
||||
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";
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue