virtadpt / paperless-ngx-files

Config files and scripts I wrote to make paperless-ngx a little easier to set up.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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

About

Config files and scripts I wrote to make paperless-ngx a little easier to set up.

License:Creative Commons Zero v1.0 Universal


Languages

Language:Shell 78.9%Language:Python 21.1%