Setup paperless host and reverse proxy for acme http challange

This commit is contained in:
fi 2024-11-20 05:46:40 +01:00
parent e7259ca980
commit 894694229a
13 changed files with 184 additions and 3 deletions

View file

@ -0,0 +1,12 @@
{ ... }:
{
services.nginx.virtualHosts."paperless.grzb.de" = {
listen = [{
addr = "0.0.0.0";
port = 80;
}];
locations."^~ /.well-known/acme-challenge/" = {
proxyPass = "http://paperless.wg.grzb.de:80";
};
};
}

View file

@ -0,0 +1,16 @@
{ ... }:
{
imports = [
./acme-challenge.nix
];
services.nginx.virtualHosts."_" = {
listen = [{
addr = "0.0.0.0";
port = 80;
}];
locations."/" = {
return = "301 https://$host$request_uri";
};
};
}