Use GH api URL

Update configuration.rst
This commit is contained in:
Michael Shamoon committed 2022-04-02 01:36:37 -07:00
1 parent b58550bb79
commit c62260ab02
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -767,8 +767,8 @@ PAPERLESS_OCR_LANGUAGES=<list>
PAPERLESS_ENABLE_UPDATE_CHECK=<bool>
Enabling this option enables the check for available updates, which works by
loading the version file of the public repository for this project on Github e.g.
https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/src/paperless/version.py
pinging the releases endpoint of the Github API for the project e.g.
https://api.github.com/repos/paperless-ngx/paperless-ngx/releases/latest
to determine whether a new version is available. Actual updating of the app must be done manually.
No tracking data is collected by the app in any way.
+2 -2
View File
@@ -679,8 +679,8 @@ class RemoteVersionView(GenericAPIView):
if settings.ENABLE_UPDATE_CHECK:
try:
with urllib.request.urlopen(
"https://raw.githubusercontent.com/paperless-ngx"
+ "/paperless-ngx/main/src/paperless/version.py",
"https://api.github.com/repos/"
+ "paperless-ngx/paperless-ngx/releases/latest",
) as response:
remote = response.read().decode("utf-8")
try: