Compare commits
2 commits
61fecf3bdb
...
042e3e787c
Author | SHA1 | Date | |
---|---|---|---|
042e3e787c | |||
55a3807844 |
3 changed files with 17 additions and 8 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue