Spaces:
Runtime error
Runtime error
Create data/config.json
Browse files- data/config.json +58 -0
data/config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"security": {
|
3 |
+
"admin_password": ""
|
4 |
+
},
|
5 |
+
"http": {
|
6 |
+
"host": "0.0.0.0",
|
7 |
+
"port": 9000,
|
8 |
+
"proxy-pass": {
|
9 |
+
"oaifree": {
|
10 |
+
"enable": true,
|
11 |
+
"host": "https://new.oaifree.com",
|
12 |
+
"port": 9001
|
13 |
+
},
|
14 |
+
"fuclaude": {
|
15 |
+
"enable": true,
|
16 |
+
"host": "https://demo.fuclaude.com",
|
17 |
+
"port": 9002
|
18 |
+
}
|
19 |
+
},
|
20 |
+
"title": "Pandora",
|
21 |
+
"rate": 1000
|
22 |
+
},
|
23 |
+
"database": {
|
24 |
+
"driver": "sqlite",
|
25 |
+
"dsn": "./data/data.db"
|
26 |
+
},
|
27 |
+
"share": {
|
28 |
+
"random": true,
|
29 |
+
"custom": true
|
30 |
+
},
|
31 |
+
"pandora": {
|
32 |
+
"domain": {
|
33 |
+
"chat": "https://chat.oaifree.com",
|
34 |
+
"token": "https://token.oaifree.com",
|
35 |
+
"index": "https://new.oaifree.com",
|
36 |
+
"claude": "https://demo.fuclaude.com"
|
37 |
+
}
|
38 |
+
},
|
39 |
+
"moderation": {
|
40 |
+
"apiKey": "",
|
41 |
+
"apiUrl": "https://api-proxy.oaipro.com/v1/moderations",
|
42 |
+
"message": "您的消息包含不当内容,请修改后重试!"
|
43 |
+
},
|
44 |
+
"oneapi": {
|
45 |
+
"token": "",
|
46 |
+
"domain": ""
|
47 |
+
},
|
48 |
+
"log": {
|
49 |
+
"level": "info",
|
50 |
+
"encoding": "console",
|
51 |
+
"output": "console",
|
52 |
+
"log_file_name": "./logs/server.log",
|
53 |
+
"max_backups": 30,
|
54 |
+
"max_age": 7,
|
55 |
+
"max_size": 1024,
|
56 |
+
"compress": true
|
57 |
+
}
|
58 |
+
}
|