mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 05:36:46 +00:00
Update example confi gfile
(cherry picked from commit a96845ee0289d0f01f1a0c2643a1c3bf8ea36950)
This commit is contained in:
parent
0276f000f2
commit
73bfd2c40f
@ -7,11 +7,9 @@
|
|||||||
# with the prefix INVENTREE_DB_
|
# with the prefix INVENTREE_DB_
|
||||||
# e.g INVENTREE_DB_NAME / INVENTREE_DB_USER / INVENTREE_DB_PASSWORD
|
# e.g INVENTREE_DB_NAME / INVENTREE_DB_USER / INVENTREE_DB_PASSWORD
|
||||||
database:
|
database:
|
||||||
# Default configuration - sqlite filesystem database
|
# Uncomment (and edit) one of the database configurations below,
|
||||||
ENGINE: sqlite3
|
# or specify database options using environment variables
|
||||||
NAME: '../inventree_default_db.sqlite3'
|
|
||||||
|
|
||||||
# For more complex database installations, further parameters are required
|
|
||||||
# Refer to the django documentation for full list of options
|
# Refer to the django documentation for full list of options
|
||||||
|
|
||||||
# --- Available options: ---
|
# --- Available options: ---
|
||||||
@ -27,14 +25,22 @@ database:
|
|||||||
|
|
||||||
# --- Example Configuration - sqlite3 ---
|
# --- Example Configuration - sqlite3 ---
|
||||||
# ENGINE: sqlite3
|
# ENGINE: sqlite3
|
||||||
# NAME: '/path/to/database.sqlite3'
|
# NAME: '/home/inventree/database.sqlite3'
|
||||||
|
|
||||||
# --- Example Configuration - MySQL ---
|
# --- Example Configuration - MySQL ---
|
||||||
#ENGINE: django.db.backends.mysql
|
#ENGINE: mysql
|
||||||
#NAME: inventree
|
#NAME: inventree
|
||||||
#USER: inventree_username
|
#USER: inventree
|
||||||
#PASSWORD: inventree_password
|
#PASSWORD: inventree_password
|
||||||
#HOST: '127.0.0.1'
|
#HOST: 'localhost'
|
||||||
|
#PORT: '3306'
|
||||||
|
|
||||||
|
# --- Example Configuration - Postgresql ---
|
||||||
|
#ENGINE: postgresql
|
||||||
|
#NAME: inventree
|
||||||
|
#USER: inventree
|
||||||
|
#PASSWORD: inventree_password
|
||||||
|
#HOST: 'localhost'
|
||||||
#PORT: '5432'
|
#PORT: '5432'
|
||||||
|
|
||||||
# Select default system language (default is 'en-us')
|
# Select default system language (default is 'en-us')
|
||||||
@ -43,6 +49,7 @@ language: en-us
|
|||||||
# System time-zone (default is UTC)
|
# System time-zone (default is UTC)
|
||||||
# Reference: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
# Reference: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||||
# Select an option from the "TZ database name" column
|
# Select an option from the "TZ database name" column
|
||||||
|
# Use the environment variable INVENTREE_TIMEZONE
|
||||||
timezone: UTC
|
timezone: UTC
|
||||||
|
|
||||||
# List of currencies supported by default.
|
# List of currencies supported by default.
|
||||||
@ -57,6 +64,7 @@ currencies:
|
|||||||
- USD
|
- USD
|
||||||
|
|
||||||
# Set debug to False to run in production mode
|
# Set debug to False to run in production mode
|
||||||
|
# Use the environment variable INVENTREE_DEBUG
|
||||||
debug: True
|
debug: True
|
||||||
|
|
||||||
# Set debug_toolbar to True to enable a debugging toolbar for InvenTree
|
# Set debug_toolbar to True to enable a debugging toolbar for InvenTree
|
||||||
@ -65,6 +73,7 @@ debug: True
|
|||||||
debug_toolbar: False
|
debug_toolbar: False
|
||||||
|
|
||||||
# Configure the system logging level
|
# Configure the system logging level
|
||||||
|
# Use environment variable INVENTREE_LOG_LEVEL
|
||||||
# Options: DEBUG / INFO / WARNING / ERROR / CRITICAL
|
# Options: DEBUG / INFO / WARNING / ERROR / CRITICAL
|
||||||
log_level: WARNING
|
log_level: WARNING
|
||||||
|
|
||||||
@ -86,13 +95,14 @@ cors:
|
|||||||
# - https://sub.example.com
|
# - https://sub.example.com
|
||||||
|
|
||||||
# MEDIA_ROOT is the local filesystem location for storing uploaded files
|
# MEDIA_ROOT is the local filesystem location for storing uploaded files
|
||||||
# By default, it is stored in a directory named 'inventree_media' local to the InvenTree directory
|
# By default, it is stored under /home/inventree
|
||||||
# This should be changed for a production installation
|
# Use environment variable INVENTREE_MEDIA_ROOT
|
||||||
media_root: '../inventree_media'
|
media_root: '/home/inventree/media'
|
||||||
|
|
||||||
# STATIC_ROOT is the local filesystem location for storing static files
|
# STATIC_ROOT is the local filesystem location for storing static files
|
||||||
# By default it is stored in a directory named 'inventree_static' local to the InvenTree directory
|
# By default, it is stored under /home/inventree
|
||||||
static_root: '../inventree_static'
|
# Use environment variable INVENTREE_STATIC_ROOT
|
||||||
|
static_root: '/home/inventree/static'
|
||||||
|
|
||||||
# Optional URL schemes to allow in URL fields
|
# Optional URL schemes to allow in URL fields
|
||||||
# By default, only the following schemes are allowed: ['http', 'https', 'ftp', 'ftps']
|
# By default, only the following schemes are allowed: ['http', 'https', 'ftp', 'ftps']
|
||||||
@ -105,7 +115,8 @@ static_root: '../inventree_static'
|
|||||||
# Backup options
|
# Backup options
|
||||||
# Set the backup_dir parameter to store backup files in a specific location
|
# Set the backup_dir parameter to store backup files in a specific location
|
||||||
# If unspecified, the local user's temp directory will be used
|
# If unspecified, the local user's temp directory will be used
|
||||||
#backup_dir: '/home/inventree/backup/'
|
# Use environment variable INVENTREE_BACKUP_DIR
|
||||||
|
backup_dir: '/home/inventree/backup/'
|
||||||
|
|
||||||
# Permit custom authentication backends
|
# Permit custom authentication backends
|
||||||
#authentication_backends:
|
#authentication_backends:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user