-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config.ts
63 lines (63 loc) · 1.74 KB
/
app.config.ts
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
export const config = {
db: {
database: process.env.DB_DB_NAME,
host: process.env.DB_HOST,
port: process.env.DB_PORT,
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
sid: process.env.DB_SID,
},
auth: {
github: {
id: process.env.AUTH_GITHUB_ID,
secret: process.env.AUTH_GITHUB_SECRET,
},
gitee: {
id: process.env.AUTH_GITEE_ID,
secret: process.env.AUTH_GITEE_SECERT,
},
autho: {
id: process.env.AUTH_AUTHO_ID,
secret: process.env.AUTH_AUTHO_SECERT,
issuer: process.env.AUTH_AUTHO_ISSUER,
},
},
path: {
ban: "/ban",
addBook: "/dashboard/book/create",
addPress: "/dashboard/press/create",
addExpress: "/dashboard/express/create",
editBook: "/dashboard/book/edit",
editPress: "/dashboard/press/edit",
editExpress: "/dashboard/express/edit",
editUser: "/dashboard/user/edit",
editOrder: "/dashboard/order/edit",
adminBook: "/dashboard/book",
adminPress: "/dashboard/press",
adminExpress: "/dashboard/express",
adminUser: "/dashboard/user",
adminOrder: "/dashboard/order",
adminPanel: "/dashboard",
restockPress: "/dashboard/press/restock",
login: "/signin",
bookDetail: "/book",
cart: "/cart",
checkoutSuccess: "/cart/result",
order: "/profile/order",
profile: "/profile",
search: "/search",
about: "/about",
},
route: {
protected: ["/dashboard"],
},
app: {
user_discount_definition: [0.9, 0.8, 0.7, 0.6],
level_definition: [1000, 2000, 3000, 4000],
money_to_xp_exchange_rate: 10,
index_images: [
"https://biblos-image-r2.itsp3.space/WechatIMG446.jpg",
"https://biblos-image-r2.itsp3.space/WechatIMG441.jpg",
],
},
};