내 dev 환경에서 여러 docker 컨테이너 앞에 Traefik 리버스 프록시가 있습니다.Traefik에서 제공하는 콘텐츠가 왜 잘리지 않습니까?
최근에 큰 파일이 포트 80 (Traefik)을 통해 제공 될 때 잘리는 것으로 나타났습니다. 그러나 Docker 컨테이너의 로컬 HTTP 포트를 사용하여 파일을 다운로드하면 파일이 정상입니다.
이것은 특정 크기를 초과하는 파일에만 영향을 미치는 것으로 보입니다.
Docker 컨테이너에서 큰 파일을 생성했습니다. 내가 파일 및 우회 Traefik (이 컨테이너의 포트 4200) curl
경우
for ((i=1;i<=200000;i++)); do echo "$i some new line that has a reasonably long length and content" >> public/large-file.txt; done
, 파일이 손상과 같은 정확한 크기마다입니다. Traefik을 통해 포트 0122를 통해 curl
파일을 열면 파일이 임의의 지점에서 잘립니다.
$ curl -O http://localhost/large-file.txt; cat large-file.txt
...
114633 some new line that has a reasonably long length and content
114634 some new line that has a reasonably long length and content
114635 some new line that has a rea
$ curl -O http://localhost/large-file.txt; cat large-file.txt
...
199732 some new line that has a reasonably long length and content
199733 some new line that has a reasonably long length and content
199734 some new line that has a re
이 동작을 바탕으로,이는 부두 노동자 문제, 그리고 내 웹 서버에 문제가 아니라고 보인다. 오히려 Traefik이 잘못한 것처럼 보입니다.
Traefik의 버그입니까? 아니면 잠재적 인 구성 오류일까요?
는