From 61a70a228499b74c6f4d7b5ca1ed76a29ec357d5 Mon Sep 17 00:00:00 2001 From: Fabian Ohler Date: Thu, 6 May 2021 14:08:49 +0200 Subject: [PATCH 1/3] Update setup.rst use ansible-galaxy to fetch the ansible scripts to have a role called paperless-ng instead of ansible --- docs/setup.rst | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/docs/setup.rst b/docs/setup.rst index 98e055a07..f91d0859d 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -485,29 +485,22 @@ Install Paperless using ansible ansible -m ping YourAnsibleTargetHostGoesHere -2. Clone the repository of paperless-ng: +2. Install the latest tag of the ansible role using ansible-galaxy .. code:: sh - git clone https://github.com/jonaswinkler/paperless-ng + ansible-galaxy install git+https://github.com/jonaswinkler/paperless-ng.git,ng-1.4.2 - Checkout the latest release tag: - - .. code:: sh - - cd paperless-ng - git checkout ng-1.0.0 - -3. Create an ansible ``playbook.yml`` in the paperless-ng root directory: +3. Create an ansible ``playbook.yml`` in a directory of your choice: .. code:: yaml - hosts: YourAnsibleTargetHostGoesHere become: yes vars_files: - - ansible/vars.yml + - vars/paperless-ng.yml roles: - - ansible + - paperless-ng Optional: If you also want to use PostgreSQL on the target system, install and add (for example) the `geerlingguy.postgresql `_ role: @@ -520,10 +513,10 @@ Install Paperless using ansible - hosts: YourAnsibleTargetHostGoesHere become: yes vars_files: - - ansible/vars.yml + - vars/paperless-ng.yml roles: - geerlingguy.postgresql - - ansible + - paperless-ng Optional: If you also want to use a reverse proxy on the target system, install and add (for example) the `geerlingguy.nginx `_ role: @@ -536,13 +529,13 @@ Install Paperless using ansible - hosts: YourAnsibleTargetHostGoesHere become: yes vars_files: - - ansible/vars.yml + - vars/paperless-ng.yml roles: - geerlingguy.postgresql - - ansible + - paperless-ng - geerlingguy.nginx -4. Create ``ansible/vars.yml`` to configure your ansible deployment: +4. Create ``vars/paperless-ng.yml`` to configure your ansible deployment: .. code:: yaml From e5573c82b95fa57d5cdeffd07969211ae3176e83 Mon Sep 17 00:00:00 2001 From: Fabian Ohler Date: Thu, 6 May 2021 14:15:12 +0200 Subject: [PATCH 2/3] Mention lacking support for ARM in ansible setup Since the jbig2enc dependency is pulled from a repository that only provides i386 and amd64 packages, the installation will fail on arm hosts. --- docs/setup.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/setup.rst b/docs/setup.rst index 98e055a07..5f294fa76 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -460,6 +460,7 @@ Install Paperless using ansible .. note:: This role currently only supports Debian 10 Buster and Ubuntu 20.04 Focal or later as target hosts. + Additionally, only i386 or amd64 based hosts are supported right now, i.e. installation on arm hosts will fail. 1. Install ansible 2.7+ on the management node. This may be the target host paperless-ng is being installed on or any remote host which can access the target host. From b73a00dead4a5bdb36d14c008efcb62a7b26fca2 Mon Sep 17 00:00:00 2001 From: Carl Mercier Date: Fri, 7 May 2021 14:02:11 -0400 Subject: [PATCH 3/3] Tell web crawlers to not index Paperless --- src/documents/templates/index.html | 1 + src/documents/templates/registration/logged_out.html | 1 + src/documents/templates/registration/login.html | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/documents/templates/index.html b/src/documents/templates/index.html index 5a7b8c9ba..c4beea07a 100644 --- a/src/documents/templates/index.html +++ b/src/documents/templates/index.html @@ -12,6 +12,7 @@ + diff --git a/src/documents/templates/registration/logged_out.html b/src/documents/templates/registration/logged_out.html index bf21b95f8..1e8ab2e78 100644 --- a/src/documents/templates/registration/logged_out.html +++ b/src/documents/templates/registration/logged_out.html @@ -10,6 +10,7 @@ + {% translate "Paperless-ng signed out" %} diff --git a/src/documents/templates/registration/login.html b/src/documents/templates/registration/login.html index ba46d3adf..464d90be9 100644 --- a/src/documents/templates/registration/login.html +++ b/src/documents/templates/registration/login.html @@ -10,6 +10,8 @@ + + {% translate "Paperless-ng sign in" %}