23 lines
913 B
Plaintext
23 lines
913 B
Plaintext
# Vibe Launcher 后端(k3s vibe-launcher/vibe-launcher-backend, NodePort 30830)
|
||
# 挂载点:https://api.ttstd.com/launcher/(灰云直连源站,不走 Cloudflare)
|
||
# 用法:放到 /etc/nginx/snippets/launcher-path.conf,在 api.ttstd.com 的 443 server 块内 include
|
||
# 以 /launcher/ 前缀反代,proxy_pass 末尾斜杠会剥掉前缀,后端仍收到 /api/... 与 /
|
||
location = /launcher {
|
||
return 301 /launcher/;
|
||
}
|
||
|
||
location ^~ /launcher/ {
|
||
client_max_body_size 2m;
|
||
proxy_pass http://127.0.0.1:30830/;
|
||
proxy_http_version 1.1;
|
||
proxy_set_header Host $host;
|
||
proxy_set_header X-Real-IP $remote_addr;
|
||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
proxy_set_header X-Forwarded-Proto $scheme;
|
||
proxy_connect_timeout 10s;
|
||
proxy_read_timeout 30s;
|
||
proxy_send_timeout 30s;
|
||
proxy_buffering off;
|
||
add_header Cache-Control "no-store" always;
|
||
}
|