How to assign a ssl certificate to an ip of a Droplet in DigitalOcean?

1

I have a ssl certificate of Let's Encrypt installed on my nginx server and it works fine.

And I have my app developed with the MeanStack hosted on a droplet in DigitalOcean with a domain that is jorgecastillodeveloper.pro. when entering link the content loads well but when I access link no redirect me to the application that I have. This api is running in a stable port for example 7777, I have created an iptable rule so that what enters through port 80 redirects me to port 7777. But this only happens when I use link

You can access link and you will see that the content loads well but when you access link does not load it because it tells me that there is mixed content problem from https to http.

Help please ...

    
asked by Jorge Castillo 09.04.2018 в 23:21
source

1 answer

1

What happens when you use https the server is blocking the calls you make to external files if they do not also use https , this way in your website if load bootstrap:

https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css

but not jquery:

http://code.jquery.com/jquery-3.3.1.js

What you have to do is call those files using https , so

https://code.jquery.com/jquery-3.3.1.js

or otherwise call those bookstores locally

    
answered by 09.04.2018 в 23:29