Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] 静态文件的http服务器(? #92

Open
dogdie233 opened this issue Dec 22, 2023 · 3 comments
Open

[Feature Request] 静态文件的http服务器(? #92

dogdie233 opened this issue Dec 22, 2023 · 3 comments

Comments

@dogdie233
Copy link

dogdie233 commented Dec 22, 2023

在采用了Shamrock的方案后,现在BotServer和Sora被运行在了不同的机器上
当我使用本地文件path的方式发送语音时,由于并不是同一台机器,Shamrock会报错找不到文件。
因此只剩下了Base64与URL的方式可用

或许Sora可以做到在以被动ws的方式启动时,顺便绑一个/static的router在监听的目录下,只要映射到本地存储的一个目录就行了

@dogdie233 dogdie233 changed the title ' [Feature Request] 静态文件的http服务器(? Dec 22, 2023
@Yukari316
Copy link
Collaborator

应该可以,之后有时间了我弄下

@dogdie233
Copy link
Author

好诶

@Yukari316
Copy link
Collaborator

不过我还是建议用base64或者自己弄个文件服务器比较合适
我这边现在没什么时间来搞新功能,这个框架估计等我闲了也要重构了。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants