Files
k8s-docs/k8s/xiongxiao.me/traefik/serverstransport.yaml

23 lines
687 B
YAML
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.
---
# ServersTransport 配置 - 解决大文件上传超时问题
# 用于需要长时间上传的服务(如 kevisual
# tags: traefik, serverstransport, timeout, upload
# description: 配置 Traefik 服务器传输的超时设置,支持大文件长时间上传
# title: Traefik ServersTransport 超时配置
# createdAt: 2026-02-01
---
# ServersTransport - 支持大文件上传和长连接
apiVersion: traefik.io/v1alpha1
kind: ServersTransport
metadata:
name: serverstransport
namespace: default
spec:
http:
# 空闲超时 10 分钟(适合大文件上传)
idleTimeout: 600s
# 响应头超时
readTimeout: 600s
# 写入超时
writeTimeout: 600s