A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Apply consistent name structure to vars
Fabian Koller32c9369ba18e
diff --git a/ansible/README.md b/ansible/README.mdindex 6cd9e9f9b..0940cf072 100644--- a/ansible/README.md+++ b/ansible/README.md@@ -107,7 +107,7 @@ Example Playbookpaperlessng_db_type: postgresqlpaperlessng_db_pass: PLEASEPROVIDEASTRONGPASSWORDHERE- paperless_secret_key: AGAINPLEASECHANGETHISNOW+ paperlessng_secret_key: AGAINPLEASECHANGETHISNOWpaperlessng_ocr_languages:- engdiff --git a/ansible/defaults/main.yml b/ansible/defaults/main.ymlindex aaeffa507..f1cbb8f88 100644--- a/ansible/defaults/main.yml+++ b/ansible/defaults/main.yml@@ -23,14 +23,14 @@ paperlessng_filename_format:paperlessng_virtualenv: "{{ paperlessng_directory }}/.venv"# Hosting & Security-paperless_secret_key: PLEASECHANGETHISFORTHELOVEOFGOD-paperless_allowed_hosts: "*"-paperless_cors_allowed_hosts: http://localhost:8000-paperless_force_script_name:-paperless_static_url: /static/-paperless_auto_login_username:-paperless_cookie_prefix: ""-paperless_enable_http_remote_user: False+paperlessng_secret_key: PLEASECHANGETHISFORTHELOVEOFGOD+paperlessng_allowed_hosts: "*"+paperlessng_cors_allowed_hosts: http://localhost:8000+paperlessng_force_script_name:+paperlessng_static_url: /static/+paperlessng_auto_login_username:+paperlessng_cookie_prefix: ""+paperlessng_enable_http_remote_user: False# OCR settingspaperlessng_ocr_languages:diff --git a/ansible/tasks/main.yml b/ansible/tasks/main.ymlindex dba409549..ed05cd05e 100644--- a/ansible/tasks/main.yml+++ b/ansible/tasks/main.yml@@ -286,21 +286,21 @@line: "PAPERLESS_FILENAME_FORMAT={{ paperlessng_filename_format }}"# Hosting & Security- regexp: PAPERLESS_SECRET_KEY- line: "PAPERLESS_SECRET_KEY={{ paperless_secret_key }}"+ line: "PAPERLESS_SECRET_KEY={{ paperlessng_secret_key }}"- regexp: PAPERLESS_ALLOWED_HOSTS- line: "PAPERLESS_ALLOWED_HOSTS={{ paperless_allowed_hosts }}"+ line: "PAPERLESS_ALLOWED_HOSTS={{ paperlessng_allowed_hosts }}"- regexp: PAPERLESS_CORS_ALLOWED_HOSTS- line: "PAPERLESS_CORS_ALLOWED_HOSTS={{ paperless_cors_allowed_hosts }}"+ line: "PAPERLESS_CORS_ALLOWED_HOSTS={{ paperlessng_cors_allowed_hosts }}"- regexp: PAPERLESS_FORCE_SCRIPT_NAME- line: "PAPERLESS_FORCE_SCRIPT_NAME={{ paperless_force_script_name }}"+ line: "PAPERLESS_FORCE_SCRIPT_NAME={{ paperlessng_force_script_name }}"- regexp: PAPERLESS_STATIC_URL- line: "PAPERLESS_STATIC_URL={{ paperless_static_url }}"+ line: "PAPERLESS_STATIC_URL={{ paperlessng_static_url }}"- regexp: PAPERLESS_AUTO_LOGIN_USERNAME- line: "PAPERLESS_AUTO_LOGIN_USERNAME={{ paperless_auto_login_username }}"+ line: "PAPERLESS_AUTO_LOGIN_USERNAME={{ paperlessng_auto_login_username }}"- regexp: PAPERLESS_COOKIE_PREFIX- line: "PAPERLESS_COOKIE_PREFIX={{ paperless_cookie_prefix }}"+ line: "PAPERLESS_COOKIE_PREFIX={{ paperlessng_cookie_prefix }}"- regexp: PAPERLESS_ENABLE_HTTP_REMOTE_USER- line: "PAPERLESS_ENABLE_HTTP_REMOTE_USER={{ paperless_enable_http_remote_user }}"+ line: "PAPERLESS_ENABLE_HTTP_REMOTE_USER={{ paperlessng_enable_http_remote_user }}"# OCR settings- regexp: PAPERLESS_OCR_LANGUAGEline: "PAPERLESS_OCR_LANGUAGE={{ paperlessng_ocr_languages | join('+') }}"diff --git a/docs/setup.rst b/docs/setup.rstindex 5c3c9c361..e040db790 100644--- a/docs/setup.rst+++ b/docs/setup.rst@@ -88,7 +88,7 @@ You can go multiple routes to setup and run Paperless:The Docker routes are quick & easy. These are the recommended routes. This configures all the stufffrom the above automatically so that it just works and uses sensible defaults for all configuration options.-Here you find a cheat-sheet for docker beginners: `CLI Basics <https://sehn.tech/post/devops-with-docker/>`_+Here you find a cheat-sheet for docker beginners: `CLI Basics <https://sehn.tech/post/devops-with-docker/>`_The bare metal route is complicated to setup but makes it easiershould you want to contribute some code back. You need to configure and@@ -126,7 +126,7 @@ Install Paperless from Docker HubIf you want to use the included ``docker-compose.*.yml`` file, youneed to have at least Docker version **17.09.0** and docker-compose- version **1.17.0**.+ version **1.17.0**.To check do: `docker-compose -v` or `docker -v`See the `Docker installation guide`_ on how to install the current@@ -151,7 +151,7 @@ Install Paperless from Docker Hub.. code::- /home/jonaswinkler/paperless-inbox:/usr/src/paperless/consume-+Don't change the part after the colon or paperless wont find your documents.@@ -159,7 +159,7 @@ Install Paperless from Docker Hubmost important change is to set ``USERMAP_UID`` and ``USERMAP_GID``to the uid and gid of your user on the host system. Use ``id -u`` and``id -g`` to get these.-+This ensures thatboth the docker container and you on the host machine have write accessto the consumption directory. If your UID and GID on the host system is@@ -194,7 +194,7 @@ Install Paperless from Docker Hub8. The default ``docker-compose.yml`` exports the webserver on your local port8000. If you did not change this, you should now be able to visit your- Paperless instance at ``http://127.0.0.1:8000`` or your servers IP-Address:8000.+ Paperless instance at ``http://127.0.0.1:8000`` or your servers IP-Address:8000.Use the login credentials you have created with the previous step... _Docker: https://www.docker.com/@@ -223,7 +223,7 @@ Build the docker image yourselfwebserver:image: jonaswinkler/paperless-ng:latest-+and replace it with a line that instructs docker-compose to build the image from the current working directory instead:.. code:: yaml@@ -426,7 +426,7 @@ Install Paperless using ansibleThis role currently only supports Debian 10 Buster and Ubuntu 20.04 Focal or later as target hosts.-1. Install ansible 2.7+ on the management node.+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.For further details, check the ansible `inventory <https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html>`_ documentation.@@ -461,7 +461,7 @@ Install Paperless using ansible.. code:: shcd paperless-ng- git checkout ng-0.9.14+ git checkout ng-1.0.03. Create an ansible ``playbook.yml`` in the paperless-ng root directory:@@ -511,7 +511,7 @@ Install Paperless using ansible.. code:: yaml- paperless_secret_key: PleaseGenerateAStrongKeyForThis+ paperlessng_secret_key: PleaseGenerateAStrongKeyForThispaperlessng_superuser_name: YourUserNamepaperlessng_superuser_email: [email protected]@@ -584,7 +584,7 @@ Migration to paperless-ng is then performed in a few simple steps:.. code:: shell-session$ docker volume ls | grep _data-+and adjust the project name in the ``.env`` file so that it matches the nameof the volumes before the ``_data`` part.