새 호스팅 제공업체의 인스턴스로 마이그레이션 중

AWS에서 커스텀 도메인과 LetsEncrypt를 통한 SSL을 사용하여 포럼을 운영하고 있습니다. 이상적으로는 다운타임 없이 Digital Ocean으로 이주하고 싶습니다. 다양한 문제를 겪어왔는데, 권장되는 모범 사례가 있을까요?

처음에는 새 인스턴스를 설정하고 LetsEncrypt를 활성화해 보았지만, 이로 인해 여러 문제가 발생했습니다(예: SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE). 이는 기존 운영 중인 사이트와 동일한 도메인 이름을 새 인스턴스 설정에 사용하려고 했기 때문으로 보입니다.

그 후 SSL 없이(하지만 인스턴스는 동일한 도메인 이름으로 구성) 인스턴스를 설정하고 운영 중인 사이트에서 백업을 복원해 보았습니다. 이번에는 도메인 이름 관련 문제로 인해 복원 프로세스가 실패했습니다.

새 도메인으로 새 인스턴스를 설정하는 것은 정말 쉽습니다(감사합니다! :pray:) 하지만, 이주하기 위해 나중에 DNS 전환만 하면 되는 새 인스턴스를 생성하는 것은 매우 어렵게 느껴집니다. 물론, 제가 잘못하고 있는 것일 수도 있겠지만요!

도움이 되신다면 알려 주시면 감사하겠습니다.

I’m not making any promises, but if the current site is a standard install, you can copy over your the letsencrypt and ssl directories and those certs should get copied over and it’ll rebuild just fine. It can be a bit tricky, though.

Worst case, you’ll need to rebuild the site after the DNS switch.

Would INSTALL-cloud.md instructions work modified like this, on the new target host?:

sudo -s
git clone GitHub - discourse/discourse_docker: A Docker image for Discourse · GitHub /var/discourse
cd /var/discourse
[copy letsencrypt, ssl directories & containers/app.yml from current running instance]
./discourse-setup

Then on to using the web UI to restore from backup, and DNS switch?

Any recommendations for tests to perform before the DNS switch?

Many thanks for any helpful pointers!

You don’t need discourse-setup, just ./launcher rebuild app. You should be able to change your local DNS to point it to the new server and have it work.

Excellent, thanks for the tips!