# "Mixed Content" errors from DigitalOcean install

**URL:** <https://forum.ghost.org/t/mixed-content-errors-from-digitalocean-install/29066>\
**Category:** Developer help\
**Created:** [March 16, 2022, 7:24am UTC](https://forum.ghost.org/t/mixed-content-errors-from-digitalocean-install/29066 "2022-03-16T07:24:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cadent](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@cadent](https://forum.ghost.org/u/cadent)\
**Post date:** [March 16, 2022, 7:24am UTC](https://forum.ghost.org/t/mixed-content-errors-from-digitalocean-install/29066/1 "2022-03-16T07:24:09Z")

</div>

After a fresh install of Ghost 4.39 on a DigitalOcean droplet, with a successful SSH connection and correctly propagated DNS, I get get following errors which prevent users from clicking anything related to subscriptions:

```auto
api.js:31 Mixed Content: The page at 'https://domain.com/' was loaded over HTTPS, but requested an insecure resource 'http://domain.com/members/api/site/'. This request has been blocked; the content must be served over HTTPS.

o @ api.js:31

```

```auto
api.js:31 Mixed Content: The page at 'https://domain.com/' was loaded over HTTPS, but requested an insecure resource 'http://domain.com/members/api/member/'. This request has been blocked; the content must be served over HTTPS.
o @ api.js:31

```

and

```auto
[Portal] Failed to initialize: TypeError: Failed to fetch
    at o (api.js:31:16)
    at Object.read (api.js:62:20)
    at api.js:345:22
    at u (runtime.js:63:40)
    at Generator._invoke (runtime.js:294:22)
    at Generator.next (runtime.js:119:21)
    at f (asyncToGenerator.js:3:20)
    at a (asyncToGenerator.js:25:9)
    at asyncToGenerator.js:32:7
    at new Promise (<anonymous>)
(anonymous)	@	App.js:168

```

I suspect it has something to do with the way the LetsEncrypt SSL was installed. What can I do to diagnose the issue further?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 16, 2022, 2:56pm UTC](https://forum.ghost.org/t/mixed-content-errors-from-digitalocean-install/29066/2 "2022-03-16T14:56:04Z")

</div>

If you’re looking to use SSL for your site, your URL has to be configured as the same!

run `ghost config set url https://your.domain`, and then `ghost restart` 🙂

---

<div class="post-metadata">

**Author:** ![cadent](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@cadent](https://forum.ghost.org/u/cadent)\
**Post date:** [March 17, 2022, 2:07am UTC](https://forum.ghost.org/t/mixed-content-errors-from-digitalocean-install/29066/3 "2022-03-17T02:07:10Z")

</div>

Unfortunately I’m getting the following:

```auto
root@server_name:~# sudo -i -u ghost-mgr
ghost-mgr@server_name:~$ ghost config set url https://domain.com
Working directory is not a recognisable Ghost installation.
Run `ghost config set` again within a folder where Ghost was installed with Ghost-CLI.

```

I had assumed that accessing ghost-mgr on the server was enough to refer to the correct folders. Is that fair to assume?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 17, 2022, 3:39am UTC](https://forum.ghost.org/t/mixed-content-errors-from-digitalocean-install/29066/4 "2022-03-17T03:39:52Z")

</div>

Nope, you can have multiple installations of Ghost on 1 machine, so you have to be in the proper directory! You can run `sudo -u ghost-mgr ghost ls` to see your installation information
