Skip to content

Commit

Permalink
Upgrade to paperless-ngx v1.7.0 (#20)
Browse files Browse the repository at this point in the history
* Upgrade to paperless-ngx v1.7.0

* Fix PAPERLESS_URL

Co-authored-by: TheBestMoshe <[email protected]>
  • Loading branch information
axyjo and TheBestMoshe authored Jul 7, 2022
1 parent 8ac485c commit d0d5342
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions paperless-ngx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.7.0-0
- Upgrade to paperless-ngx v1.7.0

## 1.6.0-0
- Swap to, and upgrade to paperless-ngx v1.6.0

Expand Down
6 changes: 6 additions & 0 deletions paperless-ngx/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Another way is to make a copy of the `data` and `media` directories.
**Note**: _Remember to restart the add-on when the configuration is changed._

```yaml
url: http://example.com
filename:
format: "{created_year}/{correspondent}/{title}"
ocr:
Expand All @@ -41,6 +42,11 @@ default_superuser:
password: changeme
```
### Option: `url`

https://paperless-ngx.readthedocs.io/en/latest/configuration.html?highlight=paperless_url#hosting-security


### Option: `filename.format`

https://paperless-ngx.readthedocs.io/en/latest/advanced_usage.html#advanced-file-name-handling
Expand Down
3 changes: 2 additions & 1 deletion paperless-ngx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN apt-get update \
libxml2 \
libxml2-dev \
libxslt1-dev \
libzbar0 \
optipng \
p7zip-full \
pngquant \
Expand All @@ -46,7 +47,7 @@ RUN apt-get update \
zlib1g \
&& mkdir /var/log/supervisord /var/run/supervisord

RUN wget -O paperless.tar.xz https://github.com/paperless-ngx/paperless-ngx/releases/download/ngx-1.6.0/paperless-ngx-1.6.0.tar.xz \
RUN wget -O paperless.tar.xz https://github.com/paperless-ngx/paperless-ngx/releases/download/ngx-1.7.0/paperless-ngx-1.7.0.tar.xz \
&& 7z x paperless.tar.xz \
&& 7z x paperless.tar -o/usr/src/ \
&& cd /usr/src
Expand Down
4 changes: 3 additions & 1 deletion paperless-ngx/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Paperless-ngx",
"version": "1.6.0-0",
"version": "1.7.0-0",
"slug": "paperless",
"url": "https://github.com/paperless-ngx/paperless-ngx",
"description": "Paperless is an application that manages your personal documents. With the help of a document scanner, paperless transforms your wieldy physical document binders into a searchable archive and provides many utilities for finding and managing your documents.",
Expand All @@ -18,6 +18,7 @@
},
"map": ["share:rw"],
"options": {
"url": null,
"filename": {
"format": "{created_year}/{correspondent}/{title}"
},
Expand All @@ -31,6 +32,7 @@
}
},
"schema": {
"url": "str",
"filename": {
"format": "str"
},
Expand Down
1 change: 1 addition & 0 deletions paperless-ngx/scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ echo "Entry script"
./scripts/wait-for-redis.sh

# Load config
export PAPERLESS_URL=$(jq --raw-output ".url // ''" $CONFIG_PATH)
export PAPERLESS_FILENAME_FORMAT=$(jq --raw-output ".filename.format" $CONFIG_PATH)
export PAPERLESS_OCR_LANGUAGE=$(jq --raw-output ".ocr.language" $CONFIG_PATH)

Expand Down

0 comments on commit d0d5342

Please sign in to comment.