Andro is self-hosting Discourse and attempted to change the domain from discourse.jackril.space to jackrail.space by editing app.yml and rebuilding, but encountered a 502 error due to nginx.http.sock not being created. The error suggests the reverse proxy failed to connect to the upstream socket. JimPas advised using the built-in domain change tool in the /admin dashboard, which guides users through the process. Andro clarified they’re self-hosted and feared their site was permanently down. itsbhanusharma reassured them the installation isn’t dead and pointed to the official guide for changing domain names, noting that with an external nginx, users must also update the nginx config and generate new SSL certificates for the new domain. After following the guidance, Andro confirmed the issue was resolved. The key takeaway is that for self-hosted instances, manually editing app.yml alone is insufficient — the admin interface or full manual config updates (including nginx and SSL) are required to avoid service disruption.
In the /admin Dashboard, click on the button Change Domain Name. The first thing you get asked is to enter the new domain name, click next and follow the prompts.