멀티 컨테이너, nginx, plesk 관련 도움 요청

안녕하세요,

저는 Plesk를 사용하여 서버에 도메인 2개로 Discourse 컨테이너 2개를 설치하는 데 성공했습니다. 두 개 모두 실행 중이지만, 502 오류가 발생하고 있습니다.

오류 로그는 다음과 같습니다:
2020/04/18 13:48:45 [error] 61#61: *125 upstream prematurely closed connection while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:3000/", host: "my.domain"

컨테이너를 하나만 실행하면 이 오류가 전혀 나타나지 않습니다. 여러 설정을 시도해 보았지만 문제를 해결하지 못했습니다. 제 이해로는 nginx와 관련이 있으며, 아마도 컨테이너들이 동일한 DOCKER_HOST_IP를 사용하고 있기 때문인 것 같습니다. 불행히도 이 값을 변경할 방법을 찾지 못했습니다. Plesk에서 이 값을 편집해도 로그에 변화가 없었습니다. 이 문제에 대해 도움을 주시거나, 제가 무엇을 놓치고 있는지 명확한 조언을 주시면 정말 감사하겠습니다.

그리고 제 영어가 부족해서 죄송합니다. 제 문장이 잘 전달되길 바랍니다.

Ok, i was able to fix my issue. Here how i was able to fix it:

Many solutions for this error message was timeout related, so i tried the same fix. But it didnt make any changes, here is how i set up the additional nginx directives initialy:

 location / {
	proxy_pass [https://localhost:8500/;](http://)
	proxy_set_header Host $http_host;
	proxy_http_version 1.1;
	proxy_set_header X-Forwarded-Proto $scheme;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_redirect https://localhost:8500/ https://my.domain;
	proxy_read_timeout 300s;
	proxy_connect_timeout 75s;
}

But like i’ve said, this did nothing. So i kept on searching, till i found this link:
https://support.plesk.com/hc/en-us/articles/115004292154-How-to-change-proxy-read-timeout-for-domain-in-Plesk

this suggest to put the timout paramters just into the textfield, so i did:

The Proxy is handled via the Plesk Docker Plugin.
Now everything is working perfect. Hope this helps someone else struggeling with the same issue.