forked from pub-solar/os
fae: enable nginx for paperless
This commit is contained in:
parent
4956dafd72
commit
08791a6508
|
@ -78,13 +78,22 @@ in {
|
||||||
"paperless.faenix.eu" = {};
|
"paperless.faenix.eu" = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts = {
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
|
||||||
|
virtualHosts = {
|
||||||
"paperless.faenix.eu" = {
|
"paperless.faenix.eu" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "paperless.faenix.eu";
|
useACMEHost = "paperless.faenix.eu";
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${builtins.toString config.services.paperless.port}";
|
locations."/".proxyPass = "http://127.0.0.1:${builtins.toString config.services.paperless.port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
#services.caddy = {
|
#services.caddy = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
|
Loading…
Reference in a new issue