-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
49 lines (41 loc) · 1.03 KB
/
.env.example
File metadata and controls
49 lines (41 loc) · 1.03 KB
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
# アプリケーション設定
APP_ENV=local
APP_DEBUG=false
APP_NAME=nene2-python
# 認証設定
# list型フィールドは JSON 配列形式で書く(プレーン文字列は JSONDecodeError になる)
BEARER_TOKEN_ENABLED=false
BEARER_TOKENS=[]
# BEARER_TOKENS=["token-1","token-2"]
API_KEY_ENABLED=false
API_KEYS=[]
# API_KEYS=["key-1","key-2"]
# CORS設定
CORS_ENABLED=false
CORS_ORIGINS=[]
# CORS_ORIGINS=["https://example.com","https://app.example.com"]
# データベース設定
# sqlite: インメモリ(テスト用)
# DB_ADAPTER=sqlite
# DB_NAME=:memory:
# sqlite: ファイル永続化
# DB_ADAPTER=sqlite
# DB_NAME=data/nene2.db
# MySQL
# DB_ADAPTER=mysql
# DB_NAME=nene2
# DB_HOST=localhost
# DB_PORT=3306
# DB_USER=nene2
# DB_PASSWORD=secret
# レートリミット(APP_ENV=local では未設定時オフ。有効化する場合のみ)
# THROTTLE_ENABLED=true
# THROTTLE_LIMIT=60
# THROTTLE_WINDOW=60
# デフォルト値
DB_ADAPTER=sqlite
DB_NAME=:memory:
DB_HOST=localhost
DB_PORT=3306
DB_USER=
DB_PASSWORD=