Paperless-ngx: Difference between revisions
Add categories |
Add one more example with showing settings and user generation |
||
Line 8: | Line 8: | ||
};}}After applying the configuration you can access the instance via http://localhost:28981 and login with username <code>admin</code> and password <code>admin</code>. | };}}After applying the configuration you can access the instance via http://localhost:28981 and login with username <code>admin</code> and password <code>admin</code>. | ||
Another example below could be used on a server with an actual URL and some extra settings.<syntaxhighlight lang="nix"> | |||
services.paperless = { | |||
enable = true; | |||
consumptionDirIsPublic = true; | |||
address = "paperless.example.com"; | |||
settings = { | |||
PAPERLESS_CONSUMER_IGNORE_PATTERN = [ | |||
".DS_STORE/*" | |||
"desktop.ini" | |||
]; | |||
PAPERLESS_OCR_LANGUAGE = "deu+eng"; | |||
PAPERLESS_OCR_USER_ARGS = { | |||
optimize = 1; | |||
pdfa_image_compression = "lossless"; | |||
}; | |||
}; | |||
}; | |||
</syntaxhighlight>After the installation, you can set an admin user yourself via the following command on the server <syntaxhighlight lang="bash"> | |||
sudo /var/lib/paperless/paperless-manage createsuperuser | |||
</syntaxhighlight> | |||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Web Applications]] | [[Category:Web Applications]] |