forked from BinChengZhao/delicate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.env
128 lines (98 loc) · 2.9 KB
/
template.env
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Database Backend: mysql or postgres (The next version supports)
# Required
DATABASE=mysql
# Database access information
# Required
DATABASE_URL=mysql://root:****@localhost/db_name
# Redis access information (redis://host:port/db)
# Optional
REDIS_URL=redis://127.0.0.1:6379/0
# Database ORM Configuration File
# Optional
DIESEL_CONFIG_FILE=/*/delicate/delicate-scheduler/diesel_mysql.toml
# Database migration file directory.
# Optional
MIGRATION_DIR=/home/delicate/delicate-scheduler/migrations/mysql
# Setting the log level, Optional value `error` | `warn` | `info` | `debug` | `trace`.
# Required
LOG_LEVEL=info
# Custom session encryption token.
# Required
# The APP will panic if the key is less than 32 bytes in length.
SESSION_TOKEN=delicate_.r7c_8731_session_nekot
# Customized scheduler domain.
# Required
SCHEDULER_DOMAIN=
# Customized scheduler-front-end domain.
# Required
# Setting this item makes it easier to handle cross-domain issues.
SCHEDULER_FRONT_END_DOMAIN=http://www.delicate.com
# Customized cookie-domain domain.
# e.g `delicate.com`
# Required
SCHEDULER_COOKIE_DOMAIN=delicate.com
# Customized scheduler name.
# Required
SCHEDULER_NAME=
# Listening address of the scheduler service.
# Required
SCHEDULER_LISTENING_ADDRESS=0.0.0.0:8090
# Listening address of the executor service.
# Required
EXECUTOR_LISTENING_ADDRESS=0.0.0.0:9080
# Path to the private key.
# Optional
# ```
# openssl
# genrsa -out rsa_private_key.pem 1024
# pkcs8 -topk8 -inform PEM -in rsa_private_key.pem -outform PEM -nocrypt
# rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem
# ```
DELICATE_SECURITY_PRIVATE_KEY=/xxx/yyy/zzz.pem
# Path to the public key.
# Optional
DELICATE_SECURITY_PUBLIC_KEY=/xxx/yyy/zzz.pem
# The security level of the system: 0 is no security protection,
# 1 is rsa secret key authentication, and data transmission to do signature authentication.
# Required
DELICATE_SECURITY_LEVEL=1
# Maximum number of connection pools.
# Required
CONNECTION_POOL_MAX_SIZE=64
# Minimum number of idle connections in the pool
# Required
CONNECTION_POOL_MIN_IDLE=32
# Initial administrator user-name
# Required
INITIAL_ADMINISTRATOR_USER_NAME=admin
# Initial administrator password
# Required
INITIAL_ADMINISTRATOR_PASSWORD=admin
# Initial administrator nick-name
# Required
INITIAL_ADMINISTRATOR_NICK_NAME=admin
# Initial administrator mobile
# Required
INITIAL_ADMINISTRATOR_MOBILE=12345054321
# Initial administrator email
# Required
# Set the time zone corresponding to the mysql connection.
# Optional
# Such as "'+8:00'"
CUSTOMIZE_TIME_ZONE=
# Authentication-Model, currently optional value `casbin`.
# Optional
AUTH_MODEL=
# casbin's model conf path
# Optional
CASBIN_MODEL_CONF=
# casbin's policy conf path
# Optional
CASBIN_POLICY_CONF=
# Debug switch (For Developers)
# Optional
APP_DEBUG=false
# Customized runtime environment (For Developers)
# Optional
APP_ENV=