feat: 增加在线语音 SDK 和音色管理后台,完善引擎适配
This commit is contained in:
1 parent
1856de97bc
commit
a532ba4e0f
71 files changed
+3189
-472
No files matched your search
@@ -1,3 +1,6 @@
|
||||
limit_req_zone $binary_remote_addr zone=tts_requests:1m rate=2r/s;
|
||||
limit_conn_zone $binary_remote_addr zone=tts_connections:1m;
|
||||
|
||||
# TTS 在线合成(k3s NodePort 30810)反向代理
|
||||
# 证书由 certbot 签发(自动续期):
|
||||
# certbot certonly --webroot -w /var/www/certbot -d tts.ttstd.com
|
||||
@@ -28,8 +31,23 @@ server {
|
||||
|
||||
client_max_body_size 1m;
|
||||
|
||||
# 服务本身无鉴权,对外开放前需自行加访问控制
|
||||
# Admin uploads are streamed to the service and independently authenticated.
|
||||
location = /admin/api/import {
|
||||
client_max_body_size 256m;
|
||||
proxy_pass http://127.0.0.1:30810;
|
||||
proxy_http_version 1.1;
|
||||
proxy_request_buffering off;
|
||||
proxy_read_timeout 180s;
|
||||
proxy_send_timeout 180s;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# POST /tts 使用 TTS_API_TOKEN Bearer 鉴权,部署前创建 Kubernetes Secret
|
||||
location / {
|
||||
limit_req zone=tts_requests burst=4 nodelay;
|
||||
limit_req_status 429;
|
||||
limit_conn tts_connections 4;
|
||||
proxy_pass http://127.0.0.1:30810;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in new issue
Block a user