# Discourse 포럼을 IFrame으로 임베드하기

**URL:** https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327
**Category:** Support
**Tags:** embedding
**Created:** [9월 6, 2024, 2:40오후 UTC](https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327 "2024-09-06T14:40:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kOS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kos/32/441826_2.png) [@kOS](https://meta.discourse.org/u/kOS)
#### Post date: [9월 6, 2024, 2:40오후 UTC](https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327/1 "2024-09-06T14:40:16Z")

</div>

여러분, 안녕하세요. 이 문제에 대해 구글링을 하고, 검색하고, 조사하고, 고민을 많이 해봤습니다. 그런데 찾은 내용들이 오히려 더 혼란스럽네요. 그래서 존경하는 디스코urs 애호가 여러분께, 제가 10살 아이인 것처럼 제 포럼의 특정 주제를 다른 웹사이트에 iframe으로 삽입하는 방법을 단계별로 설명해 주실 수 있을까요? 부디 주제에서 벗어난 내용 없이 순서대로만 알려주세요.

예를 들어, 이 주제를 다른 웹사이트에 iframe으로 삽입하고 싶다고 가정해 보겠습니다.

정말 감사합니다. 이 글이 제 머릿속 안개를 걷어주길 바랍니다 :-).

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [9월 7, 2024, 12:43오전 UTC](https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327/2 "2024-09-07T00:43:51Z")

</div>

아마도 간단한 HTML을 사용할 수 있을까요?

```plaintext
<iframe src='discourse.example.com'>
</iframe>

```

`src` 부분을 포럼 URL로 변경하기만 하면 됩니다.

댓글과 답변을 임베드하는 방법을 찾고 있다면, 이 가이드를 확인해 보세요:

> [@Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963):
>
> Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out [Coding Horror’s blog](http://blog.codinghorror.com/welcome-to-the-internet-of-compromised-things/#discourse-comments). The blog is run via [Ghost](https://ghost.org/) but the comments are embedded from his [Discourse forum](http://discourse.codinghorror.com/t/welcome-to-the-internet-of-compromised-things/3550). One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …

---

<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: [9월 7, 2024, 1:36오전 UTC](https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327/3 "2024-09-07T01:36:40Z")

</div>

allowed\_iframes 사이트 설정도 참고하세요.

---

<div class="post-metadata">

### Author: ![kOS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kos/32/441826_2.png) [@kOS](https://meta.discourse.org/u/kOS)
#### Post date: [9월 9, 2024, 7:21오전 UTC](https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327/4 "2024-09-09T07:21:19Z")

</div>

여러분, 간단한 업데이트를 공유합니다. 콘솔에서 추가해야 하는 설정을 하나 찾았어요. 이 설정을 적용하면 포럼이 일반적으로 iframe으로 임베드될 수 있습니다. 급하게 처리해서 관련 문서를 아직 저장하지 못했거든요. 비슷한 답변을 찾고 계신 분이라면, 여기에 게시할 수 있도록 알려주세요.

---

<div class="post-metadata">

### Author: ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)
#### Post date: [9월 9, 2024, 11:35오전 UTC](https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327/5 "2024-09-09T11:35:18Z")

</div>

참고로, Discourse를 다른 플랫폼에 iframe으로 임베드하는 것은 좋은 아이디어가 아닙니다. 댓글 기능은 괜찮지만, 실제로 토픽을 임베드하면 온갖 문제들이 발생합니다. 어떤 시점에는 재귀(recursion)까지 발생시켰던 것 같습니다 😅

참고로, 저는 Discourse의 봇을 이용해 조언을 구했고, Sam이 다음과 같이 답변했습니다:

> [@sam](#):
>
> [다른 웹사이트에 discourse를 iframe으로 사용하는 것]은 문제가 될 것입니다. discourse는 단순히 iframe에서 실행되도록 설계되어 있지 않으니까요.

아마 [게시된 페이지](https://meta.discourse.org/t/page-publishing/151971)를 iframe으로 사용하는 것은 괜찮을 수 있지만, 그 외에는 이렇게 하는 것을 피하는 것이 좋습니다.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [9월 9, 2024, 1:02오후 UTC](https://meta.discourse.org/t/embed-my-discourse-forum-as-iframe/325327/6 "2024-09-09T13:02:57Z")

</div>

Discourse 자체에 임의의 커스텀 웹 페이지를 통합하는 솔루션(반대 방향이 아닌)이 있습니다.

다음 링크를 확인해 보세요:

> [@랜딩 페이지 플러그인 airplane](https://meta.discourse.org/t/landing-pages-plugin/180967/95?u=merefield):
>
> Just to point out you can now display arbitrary pages within Discourse using the Landing Pages Plugin in combination with a couple of extensions:

계약 범위 밖의 지원은 제공하지 못하지만, 예산이 있다면 도움을 드릴 수 있습니다.
