-
Notifications
You must be signed in to change notification settings - Fork 12
/
.env.sample
89 lines (89 loc) · 2.59 KB
/
.env.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
PYTHONPATH=${PYTHONPATH}:${PWD}
# NGINX port where the application will listen for connections
# Default: 8080 (integer)
NGINX_PORT=8080
# List of allowed hosts to access the application
# Default: 0.0.0.0,localhost
ALLOWED_HOSTS=0.0.0.0,localhost,127.0.0.1
# Origins allowed by CORS to access the application API
# Default: http://localhost:3000,http://127.0.0.1:3000
CORS_ALLOWED_ORIGINS = http://localhost:3000,http://127.0.0.1:3000
# Debug mode enabled
# Default: true
DEBUG=true
# Log level
# Default: "DEBUG" (Other options: "INFO", "WARNING", "ERROR", "CRITICAL")
LOG_LEVEL=DEBUG
# Whether or not to log to file
# Default: false
LOG_TO_FILE=false
# Active handlers for the logger
# Default: console. Other options: console,file
LOGGER_HANDLERS=console
# Path to the log files
# Default: "". Other options: "/usr/src/logs/"
LOGS_ROOT=/your/path/to/buho-stocks/data/
# Type of database
# VALUES: sqlite | mysql | postgresql
DB_TYPE=sqlite
# MySQL root user password
# Default: ex4mpl3 (string)
DB_ROOT_PASSWORD=ex4mpl3
# Database name
# Default: buho_stocks (string)
DB_NAME=buho_stocks
# Database user
# Default: root (string)
DB_USER=root
# Database password
# Default: example (string)
DB_PASSWORD=example
# Database hostname
# Default: db (string)
DB_HOSTNAME=db
# Database port
# Default: 3306 (integer)
DB_PORT=3306
# Path of the database
# Default: /your/path/to/buho-stocks/data/db.sqlite3
DATABASE_SQLITE_PATH=/your/path/to/buho-stocks/data/db.sqlite3
# Secret key for the application. Can be generated by os.urandom(20).
# It is generated automatically when the container is created for the first time
SECRET_KEY=REPLACE_SECRET_KEY
# List of allowed hosts to access the application
# Default: 0.0.0.0,localhost
ALLOWED_HOSTS=0.0.0.0,localhost,127.0.0.1
# Path to the media files uploaded by the users
# Default: /your/path/to/buho-stocks/media/
MEDIA_ROOT=/your/path/to/buho-stocks/media/
# Timezone of the application
# Default: UTC
TIME_ZONE=UTC
# Enable or disable Sentry
# Default: False
ENABLE_SENTRY=false
# Sentry DSN (Data Source Name) in order to send your errors to Sentry
# Default: "" (string)
SENTRY_DSN=https://[email protected]/1727901
# Redis hostname
# Default: redis (string)
REDIS_HOSTNAME=redis
# Redis port
# Default 6379 (integer)
REDIS_PORT=6379
# Redis database
# Default: 0 (integer)
REDIS_DB=0
# DO NOT EDIT FROM HERE. THESE VARIABLES ARE USED INTERNALLY BY THE APPLICATION
# The following variables are populated from other variables
#
MARIADB_DATABASE=${DB_NAME}
#
#
MARIADB_USER=${DB_USER}
#
#
MARIADB_PASSWORD=${DB_PASSWORD}
#
#
MARIADB_ROOT_PASSWORD=${DB_ROOT_PASSWORD}