mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
fixed settings
This commit is contained in:
parent
46a5bc00d7
commit
17803e7936
12
paperless.conf.example
Executable file → Normal file
12
paperless.conf.example
Executable file → Normal file
@ -48,6 +48,13 @@ PAPERLESS_CONSUMPTION_DIR=""
|
|||||||
#PAPERLESS_STATIC_URL="/static/"
|
#PAPERLESS_STATIC_URL="/static/"
|
||||||
|
|
||||||
|
|
||||||
|
# You can specify where the document classification model file should be
|
||||||
|
# stored. Make sure that this file is writeable by the user executing the
|
||||||
|
# management command "document_create_classifier" and that the path exists.
|
||||||
|
# The default location is /models/model.pickle wwithin the install folder.
|
||||||
|
#PAPERLESS_MODEL_FILE=/path/to/model/file
|
||||||
|
|
||||||
|
|
||||||
# These values are required if you want paperless to check a particular email
|
# These values are required if you want paperless to check a particular email
|
||||||
# box every 10 minutes and attempt to consume documents from there. If you
|
# box every 10 minutes and attempt to consume documents from there. If you
|
||||||
# don't define a HOST, mail checking will just be disabled.
|
# don't define a HOST, mail checking will just be disabled.
|
||||||
@ -69,6 +76,11 @@ PAPERLESS_EMAIL_SECRET=""
|
|||||||
#### Security ####
|
#### Security ####
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
# Controls whether django's debug mode is enabled. Disable this on production
|
||||||
|
# systems. Debug mode is enabled by default.
|
||||||
|
PAPERLESS_DEBUG="false"
|
||||||
|
|
||||||
|
|
||||||
# Paperless can be instructed to attempt to encrypt your PDF files with GPG
|
# Paperless can be instructed to attempt to encrypt your PDF files with GPG
|
||||||
# using the PAPERLESS_PASSPHRASE specified below. If however you're not
|
# using the PAPERLESS_PASSPHRASE specified below. If however you're not
|
||||||
# concerned about encrypting these files (for example if you have disk
|
# concerned about encrypting these files (for example if you have disk
|
||||||
|
0
src/manage.py
Executable file → Normal file
0
src/manage.py
Executable file → Normal file
@ -39,7 +39,7 @@ SECRET_KEY = os.getenv(
|
|||||||
|
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = bool(os.getenv("PAPERLESS_DEBUG", "YES").lower() in ("yes", "y", "1", "t", "true")) # NOQA
|
||||||
|
|
||||||
LOGIN_URL = "admin:login"
|
LOGIN_URL = "admin:login"
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ MEDIA_URL = os.getenv("PAPERLESS_MEDIA_URL", "/media/")
|
|||||||
|
|
||||||
# Document classification models location
|
# Document classification models location
|
||||||
MODEL_FILE = os.getenv(
|
MODEL_FILE = os.getenv(
|
||||||
"PAPERLESS_STATICDIR", os.path.join(BASE_DIR, "..", "models", "model.pickle"))
|
"PAPERLESS_MODEL_FILE", os.path.join(BASE_DIR, "..", "models", "model.pickle"))
|
||||||
|
|
||||||
|
|
||||||
# Paperless-specific stuff
|
# Paperless-specific stuff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user