cmvr-visual/deploy/model-gateway/nginx.conf.template
zhanghao 88cf14d794 feat: consolidate story studio and editable automatic production
Restructure backend and frontend modules; add story, library, and editor schema migrations.

Support editable automatic production, manual confirmation modes, account and user lifecycle management, compact container scrolling, consistent forms, and per-task result previews.

Update inference and TTS scheduling, deployment guidance, and regression coverage; remove obsolete standalone pages and temporary acceptance artifacts.
2026-11-14 14:07:26 +08:00

71 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 模型端口限制开发机来源;配音端口允许所有来源,上游继续校验配音API Key。
worker_processes 1;
pid /tmp/nginx.pid;
error_log stderr warn;
events {
worker_connections 256;
}
http {
log_format model_access '$remote_addr $request_method $uri $status $body_bytes_sent $request_time';
access_log /dev/stdout model_access;
server_tokens off;
client_max_body_size 512m;
client_body_temp_path /tmp/client_body;
proxy_temp_path /tmp/proxy;
fastcgi_temp_path /tmp/fastcgi;
uwsgi_temp_path /tmp/uwsgi;
scgi_temp_path /tmp/scgi;
resolver 127.0.0.11 valid=5s ipv6=off;
# 不缓存上传或产物,不代替业务层重试POST,避免改变幂等与取消语义。
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
proxy_set_header Authorization $http_authorization;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto http;
proxy_request_buffering off;
proxy_buffering off;
proxy_max_temp_file_size 0;
proxy_next_upstream off;
proxy_connect_timeout 5s;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
send_timeout 300s;
server {
listen 18190;
allow __DEVELOPMENT_CLIENT_IP__;
deny all;
location / {
# 通过Docker DNS刷新上游地址,模型容器换IP后无需重建入口。
set $model_api llmuser-workspace:18190;
proxy_pass http://$model_api;
}
}
server {
listen 18192;
allow all;
location / {
set $speech_api cmvr-visual-tts:8001;
proxy_pass http://$speech_api;
}
}
# 仅容器内部健康检查使用,此端口不发布到宿主机。
server {
listen 127.0.0.1:18089;
access_log off;
location = /live {
return 200 "ok\n";
}
location / {
return 404;
}
}
}