So I deployed a small api with nginx coming together in a docker-compose. The api and the proxy are 2 containers. Then I registered my domain and subdomain with DO. Now I tried to call the api from my angular app (local dev) and got ERR_NAME_NOT_RESOLVED.
Before adding the subdomain, I was able to connect to the server and call the api using postman. After the subdomain added, I got Error: connect ECONNREFUSED IP_ADDRESS:443.
Please give me a hint.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi @thaistudioh,
Can you confirm if your subdomain name resolving to your droplet? Changes might take up to 48 hours due to DNS cache. You can check DNS propagation using Whats my DNS.
Best regards, Sergio Turpín