Connect Repl to external CMS(strapi)

I have installed strapi in external server.
code refers it via environment variable.
Question: Can I integrate this ? Currently I have added url in secrets but it is not able to connect.