mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Use GH api URL
Update configuration.rst
This commit is contained in:
parent
b58550bb79
commit
c62260ab02
@ -767,8 +767,8 @@ PAPERLESS_OCR_LANGUAGES=<list>
|
|||||||
|
|
||||||
PAPERLESS_ENABLE_UPDATE_CHECK=<bool>
|
PAPERLESS_ENABLE_UPDATE_CHECK=<bool>
|
||||||
Enabling this option enables the check for available updates, which works by
|
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.
|
pinging the releases endpoint of the Github API for the project e.g.
|
||||||
https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/src/paperless/version.py
|
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.
|
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.
|
No tracking data is collected by the app in any way.
|
||||||
|
@ -679,8 +679,8 @@ class RemoteVersionView(GenericAPIView):
|
|||||||
if settings.ENABLE_UPDATE_CHECK:
|
if settings.ENABLE_UPDATE_CHECK:
|
||||||
try:
|
try:
|
||||||
with urllib.request.urlopen(
|
with urllib.request.urlopen(
|
||||||
"https://raw.githubusercontent.com/paperless-ngx"
|
"https://api.github.com/repos/"
|
||||||
+ "/paperless-ngx/main/src/paperless/version.py",
|
+ "paperless-ngx/paperless-ngx/releases/latest",
|
||||||
) as response:
|
) as response:
|
||||||
remote = response.read().decode("utf-8")
|
remote = response.read().decode("utf-8")
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user