שגיאת Rails בעת שימוש ב-DiscourseConnect ו-Wordpress

Hey @angus . So, my discourse is hosted on an EC2 instance by following through this tutorial. What happens is when I try to access discourse.mydomain, i get redirect to discourse.mydomain/session/sso and then redirect to https://mydomain/#/discourse/sso?sso=bm9uY2U9MTZlNjVmxNGY2M....mcmV0dXJuX3Nzb191cmw9aHR0cHMlM0ElMkYlMkZkaXNjb3Vyc2UuYmlvLWNvbnZlcnNpb24ub3JnJTJGc2Vzc2lvbiUyRnNzb19sb2dpbg%3D%3D&sig=285c1ccdd0a9e18888....c5d32291880c759b which leads to mydomain
The error that it is giving me is -
Screen Shot 2022-08-25 at 9.53.09 AM