https://github.com/virtadpt/paperless-ngx-files
Config files and scripts I wrote to make paperless-ngx a little easier to set up.
https://github.com/virtadpt/paperless-ngx-files
Last synced: 2 months ago
JSON representation
Config files and scripts I wrote to make paperless-ngx a little easier to set up.
- Host: GitHub
- URL: https://github.com/virtadpt/paperless-ngx-files
- Owner: virtadpt
- License: cc0-1.0
- Created: 2023-03-04T01:46:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-19T02:18:14.000Z (over 3 years ago)
- Last Synced: 2025-03-21T04:31:39.471Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Copy the shell scripts and `paperless.conf` file into your `paperless-ngx/` installation directory. Edit `paperless.conf` and set the PAPERLESS_DB* options appropriately. Change every instance of the string 'your-hostname-here' to the hostname of the machine you installed paperless-ngx on. Set PAPERLESS_NLTK_DIR to the full path to your [NLTK data](https://www.nltk.org/data.html) directory (by default, `/home/your-username-here/nltk_data`).
Patch the __/etc/ImageMagick-6/policy.xml__ file:
* `cd /etc/ImageMagick-6`
* `sudo patch < /path/to/paperless-ngx-files/policy.xml.diff`
Install the NLTK pre-trained models if you haven't already:
* `. path/to/paperless-ngx/env/bin/activate`
* `./install_nltk.py`
Install the helper shell scripts:
* `cd /path/to/paperless-ngx-files`
* `cp *.sh /path/to/paperless-ngx`
Install the systemd .service files:
* `mkdir -p ~/.config/systemd/user`
* `cp *.service ~/.config/systemd/user`
* `systemctl --user enable paperless-consumer.service`
* `systemctl --user start paperless-consumer.service`
* `systemctl --user enable paperless-scheduler.service`
* `systemctl --user start paperless-scheduler.service`
* `systemctl --user enable paperless-task-queue.service`
* `systemctl --user start paperless-task-queue.service`
* `systemctl --user enable paperless-wsebserver.service`
* `systemctl --user start paperless-wsebserver.service`
* `loginctl enable-linger $(whoami)`
`paperless.nginx.conf` is a simple Nginx configuration file that can be dropped into `/etc/nginx/conf.d` or added to `/etc/nginx/nginx.conf` in the appropriate location.
* `sudo cp paperless.nginx.conf /etc/nginx/conf.d`
* `sudo /usr/sbin/nginx -t`
* `sudo systemctl restart nginx.service`