# AWS/Oracle OCIのようなロードバランサーの前でDiscourseを実行する

**URL:** https://meta.discourse.org/t/run-discourse-in-front-of-load-balancer-like-aws-oracle-oci/272818
**Category:** Self-hosting
**Created:** [2023 年 7 月 25 日午後 9:09 UTC](https://meta.discourse.org/t/run-discourse-in-front-of-load-balancer-like-aws-oracle-oci/272818 "2023-07-25T21:09:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shibi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shibi/32/317128_2.png) [@shibi](https://meta.discourse.org/u/shibi)
#### Post date: [2023 年 7 月 25 日午後 9:09 UTC](https://meta.discourse.org/t/run-discourse-in-front-of-load-balancer-like-aws-oracle-oci/272818/1 "2023-07-25T21:09:22Z")

</div>

AWS/Oracle OCIのようなロードバランサーの前でDiscourseを実行したいです。

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will …

に従う必要があると思います。

しかし、ドキュメントには「templates/web.socketed.template.yml」を削除する必要があるかどうかは書かれていません。

```plaintext
o Discourse を再構築して、そのデータをソケットで利用できるようにします。

WebSocket を使用できない他のリバースプロキシを使用している場合は、代わりに上記のセクションで `- 8080:80` のように別のポートを公開できます。

```

---

<div class="post-metadata">

### Author: ![shibi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shibi/32/317128_2.png) [@shibi](https://meta.discourse.org/u/shibi)
#### Post date: [2023 年 7 月 26 日午前 2:30 UTC](https://meta.discourse.org/t/run-discourse-in-front-of-load-balancer-like-aws-oracle-oci/272818/2 "2023-07-26T02:30:40Z")

</div>

別の聞き方としては、Discourseをリバースプロキシする方法です。
