Move nginx paperless proxy configuration to relative module
This commit is contained in:
parent
61fecf3bdb
commit
55a3807844
2 changed files with 13 additions and 7 deletions
|
@ -22,4 +22,17 @@
|
||||||
environment.persistence."/persist".directories = [
|
environment.persistence."/persist".directories = [
|
||||||
config.services.paperless.dataDir
|
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;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"paper.aciceri.dev" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:${builtins.toString config.services.paperless.port}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# "${config.services.nextcloud.hostName}" = {
|
# "${config.services.nextcloud.hostName}" = {
|
||||||
# forceSSL = true;
|
# forceSSL = true;
|
||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue