-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy path.env.example
More file actions
109 lines (109 loc) · 2.69 KB
/
Copy path.env.example
File metadata and controls
109 lines (109 loc) · 2.69 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
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
APP_KEY=wATZ52sJHpuyVxNhLtC7bPzvYGKj4n3f
APP_ENV=development
APP_PORT=8000
APP_BASE_URL=http://localhost:8000
APP_DASH_URL=http://localhost:8000/dash
APP_API_BASE_NAME=api
DB_DRIVER=mysql
DB_NAME=fastschema
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASS=123
DB_LOGGING=false
DB_DISABLE_FOREIGN_KEYS=false
DB_USE_SOFT_DELETES=false
MAX_REQUEST_BODY_SIZE=4194304 # 4MB
STORAGE='{
"default_disk": "public",
"disks": [
{
"name": "public",
"driver": "local",
"root": "./public",
"public_path": "/",
"base_url": "http://localhost:8000/"
},
{
"name": "my_s3",
"driver": "s3",
"root": "/files",
"provider": "DigitalOcean",
"endpoint": "sfo3.digitaloceanspaces.com",
"region": "sfo3",
"bucket": "my_bucket",
"access_key_id": "s3_access_key_id",
"secret_access_key": "s3_secret_access_key",
"base_url": "https://cdn.site.local"
}
]
}'
AUTH='{
"enabled_providers": [
"github",
"google"
],
"providers": {
"local": {
"activation_method": "email",
"verification_method": "link",
"activation_url": "",
"recovery_url": ""
},
"github": {
"client_id": "xxxxxxxxxxxxxxxxxxxx",
"client_secret": "xxx"
},
"google": {
"client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
"client_secret": "xxx"
},
"twitter": {
"consumer_key": "twitter_consumer_key",
"consumer_secret": "twitter_consumer_secret"
}
}
}'
AUTH_ENABLE_REFRESH_TOKEN=false
AUTH_ACCESS_TOKEN_LIFETIME=900
AUTH_REFRESH_TOKEN_LIFETIME=604800
AUTH_OTP_ENABLED=false
AUTH_OTP_LENGTH=6
AUTH_OTP_EXPIRATION=300
AUTH_OTP_MAX_ATTEMPTS=3
MAIL='{
"sender_name": "FastSchema",
"sender_mail": "contact@fastschema.com",
"default_client": "mailtrapsmtp",
"clients": [
{
"name": "mailtrapsmtp",
"driver": "smtp",
"host": "smtp.mailtrap.io",
"port": 2525,
"username": "your-username",
"password": "your-password"
}
]
}'
# Role Permission Settings (JSON) - overrides database permissions at runtime
# Export current settings via: GET /api/role/export
# ROLE_PERMISSION_SETTINGS='{
# "roles": [
# {
# "name": "User",
# "permissions": [
# {"resource": "content.blog.list", "value": "allow"},
# {"resource": "content.blog.create", "value": "allow"},
# {"resource": "content.blog.update", "value": "allow", "modifier": "let _ = $context.SetArg(...)"}
# ]
# },
# {
# "name": "Guest",
# "permissions": [
# {"resource": "content.blog.list", "value": "allow"},
# {"resource": "content.blog.detail", "value": "allow"}
# ]
# }
# ]
# }'