@@ -80,6 +80,9 @@ public class ComfyuiSocketServiceImpl implements ComfyuiSocketService {
@Value("${comfyui.token}")
private String COMFYUI_TOKEN;
+ @Value("${comfyui.output}")
+ private String COMFYUI_OUTPUT;
+
/**
* 管理多个连接
*/
@@ -346,7 +349,8 @@ public class ComfyuiSocketServiceImpl implements ComfyuiSocketService {
for (int i = 0; i < images.size(); i++) {
JSONObject image = images.getJSONObject(i);
String filename = image.getStr("filename");
- String filepath = "http://o.daogu.ai/" + port + "/" + filename;
+// String filepath = "http://o.daogu.ai/" + port + "/" + filename;
+ String filepath = "http://" + COMFYUI_OUTPUT + "/" + port + "/" + filename;
images_path.add(filepath);
}
@@ -212,6 +212,7 @@ klingai:
comfyui:
host: 127.0.0.1
+ output: o.daoguyujiamcn.com
ports: 8000, 8001, 8002, 8003, 8004, 8005, 8006, 8007
token: $2b$12$.MR4qGaFetN1FPQzbfyIrehsyjnPJ12xAZhR/l7KZpLkUPQTCG4gy
is-save: true
@@ -222,6 +222,7 @@ klingai:
host: 43.128.1.201
is-save: false
@@ -213,6 +213,7 @@ klingai: