This commit is contained in:
parent
fb9b44f1de
commit
4c46c0b825
|
@ -49,6 +49,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
paperless = {
|
||||||
|
enable = true;
|
||||||
|
dataDir = "/tank/documents";
|
||||||
|
settings = {
|
||||||
|
PAPERLESS_OCR_USER_ARGS = {
|
||||||
|
invalidate_digital_signatures = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
fwupd.enable = true;
|
fwupd.enable = true;
|
||||||
promtail = {
|
promtail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -154,6 +163,7 @@
|
||||||
paths = [
|
paths = [
|
||||||
"/tank/k3scluster"
|
"/tank/k3scluster"
|
||||||
"/tank/forgejo"
|
"/tank/forgejo"
|
||||||
|
"/tank/documents"
|
||||||
];
|
];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
|
@ -303,6 +313,22 @@
|
||||||
proxyPass = "http://127.0.0.1:8973/";
|
proxyPass = "http://127.0.0.1:8973/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
virtualHosts."docs.gmem.ca" = {
|
||||||
|
enableACME = true;
|
||||||
|
addSSL = true;
|
||||||
|
acmeRoot = null;
|
||||||
|
locations."/" = {
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
|
client_max_body_size 500M;
|
||||||
|
'';
|
||||||
|
proxyPass = "http://127.0.0.1:${toString config.services.paperless.port}/";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
gitea = {
|
gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -512,6 +538,11 @@
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
credentialsFile = config.age.secrets.cloudflare-dns.path;
|
credentialsFile = config.age.secrets.cloudflare-dns.path;
|
||||||
};
|
};
|
||||||
|
security.acme.certs."docs.gmem.ca" = {
|
||||||
|
domain = "*.gmem.ca";
|
||||||
|
dnsProvider = "cloudflare";
|
||||||
|
credentialsFile = config.age.secrets.cloudflare-dns.path;
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue