# Discourse/Dockerのインストール

**URL:** <https://forum.ficusonline.com/t/discourse-docker/19>\
**Category:** Server\
**Created:** [2016 年 10 月 5 日午前 9:07 UTC](https://forum.ficusonline.com/t/discourse-docker/19 "2016-10-05T09:07:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2017 年 2 月 7 日午前 11:49 UTC](https://forum.ficusonline.com/t/discourse-docker/19/3 "2017-02-07T11:49:21Z")

</div>

Let’s EncryptによるSSL接続に対応させます。

> [@SSL認証Let's Encryptの導入 (Certbot)](https://forum.ficusonline.com/t/ssl-lets-encrypt/20):
>
> 新たな導入環境に合わせ、以前ブログで記述した内容を改訂しています。 Let’s EncryptによるフリーのSSL認証を導入する手順です。 [lets-encrypt] 事前準備 導入環境 Ubuntu Server 16.04 導入前準備として以下項目を再確認・設定して下さい。 Apacheの設定ファイルsite-available内のdefault.confのServerNam…

Let’s Encryptをインストールしたディレクトリに移動します。

> $ cd /opt/letsencrypt

certbot-autoによりApacheのSSL設定ファイル、SSL認証ファイルの作成などを実行します。

> $ sudo certbot --apache -d sub\_domain2.example.com

httpへのアクセスをhttpsへリダイレクトするかどうか以下メッセージが表示されるので番号を入力して下さい。

```
Please choose whether HTTPS access is required or optional.
-------------------------------------------------------------------------------
1: Easy - Allow both HTTP and HTTPS access to these sites
2: Secure - Make all requests redirect to secure HTTPS access
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):

```

**参考サイト**

> **[Configure Apache proxy with Let's Encrypt](https://meta.discourse.org/t/configure-apache-proxy-with-lets-encrypt/46139/1)**
>
> ⚠ Using Apache as a proxy is not recommended as Apache Httpd uses thread-per-connection model, and will likely run out of threads very fast as Discourse uses long polling. (related). The goal of this post is to help you set up Let’s Encrypt with...

---

_[View the full topic](https://forum.ficusonline.com/t/discourse-docker/19)._
