Skip to content

Commit

Permalink
feat: add voiceflow strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Dec 21, 2024
1 parent 8886f04 commit ff764d6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/images/voiceflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ FROM ghcr.io/telepace/ai_feedback_production_ubuntu:latest

WORKDIR ${TELEPACE_APP}

EXPOSE 80
EXPOSE 18080

COPY --from=builder /usr/bin/voiceflow ./bin/voiceflow
COPY --from=builder /telepace/app/configs ./configs

ENTRYPOINT ["./bin/voiceflow", "--config", "./configs/config.yaml"]
ENTRYPOINT ["./bin/voiceflow", "--config", "./configs/config.yaml"]
2 changes: 1 addition & 1 deletion cmd/voiceflow/web/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// 加载环境变量
function loadEnvironmentVariables() {
// 从 .env 文件或环境变量中获取端口
const port = process.env.VOICEFLOW_SERVER_PORT || '80';
const port = process.env.VOICEFLOW_SERVER_PORT || '18080';

// 将配置暴露给全局 window 对象
window.VOICEFLOW_SERVER_PORT = port;
Expand Down
2 changes: 1 addition & 1 deletion cmd/voiceflow/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="config.js"></script>
<!-- 配置 WebSocket URL -->
<script>
const port = window.VOICEFLOW_SERVER_PORT || '80';
const port = window.VOICEFLOW_SERVER_PORT || '18080';
const WEBSOCKET_URL = `ws://localhost:${port}/ws`;
</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion configs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server:
port: 80
port: 18080
enable_tls: false

minio:
Expand Down

0 comments on commit ff764d6

Please sign in to comment.