Compare commits

...

2 commits

Author SHA1 Message Date
042e3e787c
Fix tremotesf start
Some checks failed
EVAL x86_64-linux.picard
BUILD x86_64-linux.picard
UPLOAD x86_64-linux.picard
DOWNLOAD x86_64-linux.picard
CACHIX x86_64-linux.picard
ATTIC x86_64-linux.picard
/ test (push) Successful in 2m14s
2025-01-02 17:16:39 +01:00
55a3807844
Move nginx paperless proxy configuration to relative module 2025-01-02 17:16:23 +01:00
3 changed files with 17 additions and 8 deletions

View file

@ -16,7 +16,10 @@
};
Service = {
ExecStart = "${lib.getExe' pkgs.coreutils "sleep"} 5 && ${lib.getExe pkgs.tremotesf} --minimized";
ExecStart = pkgs.writeShellScript "start-tremotesf.sh" ''
sleep 5
${lib.getExe pkgs.tremotesf} --minimized
'';
Restart = "on-failure";
RestartSec = 3;
};

View file

@ -22,4 +22,17 @@
environment.persistence."/persist".directories = [
config.services.paperless.dataDir
];
imports = [ ../nginx-base ];
services.nginx.virtualHosts."paper.aciceri.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${builtins.toString config.services.paperless.port}";
};
extraConfig = ''
client_max_body_size 50000M;
'';
};
}

View file

@ -47,13 +47,6 @@
proxyWebsockets = true;
};
};
"paper.aciceri.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${builtins.toString config.services.paperless.port}";
};
};
# "${config.services.nextcloud.hostName}" = {
# forceSSL = true;
# enableACME = true;