feat: ship self-hosted KOC LOOP workflows

This commit is contained in:
巫凤萍
2026-08-11 23:07:26 +08:00
parent 1f1887c860
commit ddad4b7659
88 changed files with 6056 additions and 8938 deletions

View File

@@ -0,0 +1,39 @@
server {
listen 80;
server_name _;
client_max_body_size 10m;
location = /koc {
return 301 /koc/$is_args$args;
}
location /koc/ {
alias /usr/share/nginx/html/koc/;
try_files $uri $uri/ /koc/index.html;
add_header X-Robots-Tag "noindex, nofollow, noarchive" always;
add_header Referrer-Policy "no-referrer" always;
}
location /api/mcp {
proxy_pass http://app:3000;
proxy_http_version 1.1;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
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;
}
location / {
proxy_pass http://app:3000;
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_read_timeout 180s;
}
}