From 93bd24c9d2655bfe84af81a6d2987f23cb6f444f Mon Sep 17 00:00:00 2001
From: Fabian Ohler <muued@users.noreply.github.com>
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 <https://github.com/geerlingguy/ansible-role-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 <https://github.com/geerlingguy/ansible-role-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 d89022a2800997d8b21b4efc3c501c2413297a6c Mon Sep 17 00:00:00 2001
From: Fabian Ohler <muued@users.noreply.github.com>
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 fc4e59ec00f52e3cfb31dc75908132ab7f252301 Mon Sep 17 00:00:00 2001
From: Carl Mercier <carl@carlmercier.com>
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 @@
 	<meta name="username" content="{{username}}">
 	<meta name="full_name" content="{{full_name}}">
 	<meta name="cookie_prefix" content="{{cookie_prefix}}">
+	<meta name="robots" content="noindex,nofollow">
   <link rel="icon" type="image/x-icon" href="favicon.ico">
   <link rel="manifest" href="{% static webmanifest %}">
 	<link rel="stylesheet" href="{% static styles_css %}">
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 @@
     <meta name="description" content="">
     <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
     <meta name="generator" content="Jekyll v4.1.1">
+    <meta name="robots" content="noindex,nofollow">
     <title>{% translate "Paperless-ng signed out" %}</title>
 
     <!-- Bootstrap core CSS -->
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 @@
     <meta name="description" content="">
     <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
     <meta name="generator" content="Jekyll v4.1.1">
+    <meta name="robots" content="noindex,nofollow">
+
     <title>{% translate "Paperless-ng sign in" %}</title>
 
     <!-- Bootstrap core CSS -->