foliko 1.0.46 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +1 -1
- package/docker-compose.yml +2 -2
- package/package.json +1 -1
- package/plugins/web-plugin.js +4 -3
package/Dockerfile
CHANGED
package/docker-compose.yml
CHANGED
|
@@ -7,7 +7,7 @@ services:
|
|
|
7
7
|
container_name: foliko-agent
|
|
8
8
|
restart: unless-stopped
|
|
9
9
|
ports:
|
|
10
|
-
- "
|
|
10
|
+
- "3000:3000"
|
|
11
11
|
environment:
|
|
12
12
|
# AI 配置
|
|
13
13
|
- FOLIKO_PROVIDER=${FOLIKO_PROVIDER:-minimax}
|
|
@@ -15,7 +15,7 @@ services:
|
|
|
15
15
|
- FOLIKO_BASE_URL=${FOLIKO_BASE_URL:-}
|
|
16
16
|
- FOLIKO_API_KEY=${FOLIKO_API_KEY:-}
|
|
17
17
|
# Web 服务配置
|
|
18
|
-
- WEB_PORT=
|
|
18
|
+
- WEB_PORT=3000
|
|
19
19
|
- WEB_HOST=0.0.0.0
|
|
20
20
|
- WEB_BASE_URL=${WEB_BASE_URL:-}
|
|
21
21
|
# Telegram 配置(可选)
|
package/package.json
CHANGED
package/plugins/web-plugin.js
CHANGED
|
@@ -162,9 +162,10 @@ class WebPlugin extends Plugin {
|
|
|
162
162
|
return {
|
|
163
163
|
success: true,
|
|
164
164
|
message: `Server started on ${serverUrl}`,
|
|
165
|
-
port: this._port,
|
|
166
|
-
host: this._host,
|
|
167
|
-
|
|
165
|
+
// port: this._port,
|
|
166
|
+
// host: this._host,
|
|
167
|
+
host: serverUrl,
|
|
168
|
+
url:serverUrl,
|
|
168
169
|
}
|
|
169
170
|
} catch (err) {
|
|
170
171
|
this._server = null
|