# Can discourse be installed in private mode

**URL:** https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770
**Category:** Self-hosting
**Created:** [16.Февраль.2018 19:32:58 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770 "2018-02-16T19:32:58Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Andrei\_Berceanu](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andrei\_Berceanu](https://meta.discourse.org/u/Andrei_Berceanu)
#### Post date: [16.Февраль.2018 19:32:58 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/1 "2018-02-16T19:32:58Z")

</div>

I would like to install discourse on a digital ocean droplet and have only registered users view the content, is that possible?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [16.Февраль.2018 19:34:47 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/2 "2018-02-16T19:34:47Z")

</div>

Yes, simply enable `login required` in site settings, and only users with accounts can see content. If you also wish to prevent users from creating accounts, enable `invite only` as well.

Bonus: there is an option to configure a private site when running the new site wizard, which will enable both settings for you.

---

<div class="post-metadata">

### Author: ![Andrei\_Berceanu](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andrei\_Berceanu](https://meta.discourse.org/u/Andrei_Berceanu)
#### Post date: [16.Февраль.2018 22:45:04 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/3 "2018-02-16T22:45:04Z")

</div>

Is [this](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) still the [official install](https://meta.discourse.org/t/142537?silent=true) guide? It only mentions SSL at the end, should I first set up discourse and _then_ enable SSL?

I am asking because I just read that

> [@Set up HTTPS support with Let's Encrypt](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709/1):
>
> Note: ./discourse-setup will enable Let’s Encrypt.

although that is not written in the 30 minute install guide.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [17.Февраль.2018 00:09:07 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/4 "2018-02-17T00:09:07Z")

</div>

Yes it is still official. SSL can be enabled during setup, just enter your email when prompted for the Let’s Encrypt email.

---

<div class="post-metadata">

### Author: ![Vaping\_Community](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vaping_community/32/89248_2.png) [@Vaping\_Community](https://meta.discourse.org/u/Vaping_Community)
#### Post date: [17.Февраль.2018 00:17:53 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/5 "2018-02-17T00:17:53Z")

</div>

I just did this today, I selected their 1 click app - Discourse on Ubuntu 16.04 then

SSH in:

```
./discourse-setup

```

Follow the prompts, you should be good.

If you want `https` / `SSL` on both `www.` and `non www.` add a `*` `CNAME` to the dns settings for your domain and create an A record for your main domain `example@whatever.com` and point it to your server IP. (the www. will redirect to your main)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [17.Февраль.2018 00:27:13 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/6 "2018-02-17T00:27:13Z")

</div>

> [@Andrei\_Berceanu](#):
>
> although that is not written in the 30 minute install guide.

Good point. And it’s been in the installer for well over a year.

[https://github.com/discourse/discourse/pull/5602](https://github.com/discourse/discourse/pull/5602)

@codinghorror you want to have a look?

---

<div class="post-metadata">

### Author: ![Andrei\_Berceanu](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andrei\_Berceanu](https://meta.discourse.org/u/Andrei_Berceanu)
#### Post date: [20.Февраль.2018 18:14:39 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/7 "2018-02-20T18:14:39Z")

</div>

Any idea on when v2 will become production-ready?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [20.Февраль.2018 18:54:35 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/8 "2018-02-20T18:54:35Z")

</div>

> [@Andrei\_Berceanu](#):
>
> Any idea on when v2 will become production-ready?

Sorry, I’m confused. v2 of what?

---

<div class="post-metadata">

### Author: ![Andrei\_Berceanu](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andrei\_Berceanu](https://meta.discourse.org/u/Andrei_Berceanu)
#### Post date: [20.Февраль.2018 19:23:57 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/9 "2018-02-20T19:23:57Z")

</div>

Of discourse, sorry for being explicit 🙂

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [20.Февраль.2018 19:29:40 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/10 "2018-02-20T19:29:40Z")

</div>

Ah, OK, I think I understand now.

Discourse 2.0.0.beta3 is production ready - it’s what we’re running right here on Meta and for our customers. If you’re looking for Discourse 2.0.0 `stable`, you’ll need to wait a few months. Keep in mind that `stable` is not guaranteed to be more “stable” than `tests-passed` - it is simply updated less frequently and therefore you get a controlled set of bugs, but not necessarily less bugs. See [Which branch of Discourse is used internally? - #2 by jomaxro](https://meta.discourse.org/t/which-branch-of-discourse-is-used-internally/75181/2) for more details.

---

<div class="post-metadata">

### Author: ![Andrei\_Berceanu](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andrei\_Berceanu](https://meta.discourse.org/u/Andrei_Berceanu)
#### Post date: [20.Февраль.2018 19:48:19 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/11 "2018-02-20T19:48:19Z")

</div>

Is 2b3 the one installed by default on digital ocean? I mean the one-click install.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [20.Февраль.2018 19:56:20 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770/12 "2018-02-20T19:56:20Z")

</div>

I’m not certain what version is installed using the one-click install. That is managed by digital ocean, not us. However, once you have completed the one-click install you should be able to update to the latest version.
