Users are experiencing connection issues with their Discourse installation on DigitalOcean, receiving a ‘Connection Refused’ error due to SSL certificate problems. GregoryMatthews initially followed the official guides for SSL setup but faced connectivity issues. codinghorror suggested testing with plain HTTP to isolate the problem. pfaffman recommended using Let’s Encrypt for easier SSL management. kirupa asked about disabling SSL in app.yml, which pfaffman confirmed. lucasbasquerotto highlighted the risk of exceeding Let’s Encrypt’s rate limit, advising to check logs via ./launcher logs app. BoyanXu provided a detailed checklist, including verifying app.yml settings, checking port configurations, and ensuring proper firewall and security group rules. Jack51 confirmed the issue was due to rate limit overuse and resolved it by temporarily disabling SSL and rebuilding. AshNazir inquired about reconnecting after the rate limit reset.
https/http를 모두 허용하는지(443 포트 열기, ssl 관련 템플릿 설정 주석 해제, Let’s Encrypt 관련 설정 활성화) 아니면 http 요청만 허용하는지(443 포트 차단, ssl 관련 템플릿 설정 및 Let’s Encrypt 관련 설정 주석 처리) 확인하세요.
app.yml 파일에 변경 사항이 있다면 ./launcher rebuild app 명령을 실행하여 업데이트된 설정을 적용하세요.
./laucher logs app 실행
저처럼 기능하는 Discourse 서버를 재빌드하는 데 자주 실패했다면, Let’s Encrypt 자격 증명을 너무 많이 요청하여 한도를 초과했을 수도 있습니다.
이 경우 ./laucher logs app을 실행하면 429 에러가 포함된 json.이 출력됩니다.
ECS 서버 인스턴스의 Security group(보안 그룹) 설정 확인
제 경우, Security group은 단순히 허용된 포트들의 묶음(예: 80 HTTP, 443 HTTPS)으로, 서버가 외부와 통신하는 것을 제어할 수 있게 해줍니다.
Discourse 호스팅에 필요한 포트가 허용되어 있는지 확인하세요.
방화벽 설정 확인
제 경우, 3단계에서 필요한 포트가 열리지 않았습니다. 방화벽 설정에 문제가 있었던 것입니다.
이상하게도 저는 서버 방화벽을 설정한 적이 없는데, 아래 명령어로 설정한 후에야 해당 포트가 실제로 열렸습니다. apt install firewall-cmd firewall-cmd --permanent --add-port=20-21/tcp (… 그리고 다른 포트들) firewall-cmd --reload