안녕하세요.
클라우드플레어와 디스커스에 관한 가이드 몇 가지를 읽어 보았지만, 명확한 결론을 내리지 못했습니다. 어떤 사람은 디스커스와 클라우드플레어가 잘 안 맞는다고 하고, 어떤 사람은 잘 맞다고 하며, 어떤 사람은 app.yml에서 몇 가지 조정(추가 서브도메인 등)이 필요하다고 하고, 또 다른 사람은 그런 조정이 없이도 문제없이 작동한다고 합니다.
제 경험상으로는 디스커스가 그 조정 없이도 잘 작동하는 것 같습니다. (그 조정을 해야 한다는 점이 걱정되었는데, 그 과정을 정확히 이해하지 못했고, 해당 가이드가 오래된 내용일 수도 있다고 생각했기 때문입니다.)
한편, 이 사이트의 한 사용자는 보안을 강화하는 방법에 대해 질문받았을 때, "성능을 비활성화"하는 페이지 규칙을 적용하여 디스커스를 클라우드플레어 뒤에 두라고 추천했습니다. 이렇게 하면 코드가 엉망이 되지 않는다고 합니다. 그 규칙은 어떻게 설정해야 할까요? 전혀 모르겠습니다.
보시다시피, 이 부분에 대해 도움이 필요합니다.
미리 감사드립니다.
Remah
(Just another happy Discourse user)
11월 14, 2019, 8:07오전
2
모든 게시글이 동일한 방식으로 생성되는 것은 아니므로, 관리자용 공식 안내문을 확인해 보셨나요?
Fastly , CloudFlare and a few other CDNs offer a mode where they accelerate dynamic content.
In a nutshell you point your domain IP address at the CDN and the CDN will intelligently decide how to deal with the request.
Static content can be easily served from cache
Dynamic content can be routed to the site.
This provides some advantages over only shipping static assets which is covered in the CDN howto .
You can elect for “shielding ” that protects your site from traffic spikes.
Dynamic cont…
저는 Cloudflare를 사용하지 않지만, JavaScript, CSS 및 HTML에 대한 Cloudflare의 속도/성능 최적화 기능을 비활성화해야 한다는 점을 이해하고 있습니다. 특히 Rocket Loader를 비활성화하는 것이 중요합니다:
https://support.cloudflare.com/hc/en-us/articles/200168206-How-do-I-access-my-Cloudflare-Performance-Settings-
bartv
(Bart )
11월 14, 2019, 8:13오전
3
저희는 Discourse에 Cloudflare를 사용하고 있지만, 주의해야 할 사항들이 있습니다. 저희의 설정은 다음과 같습니다:
I’m using Cloudflare on my Discourse site and it works fine. You basically route all your traffic through Cloudflare and tell it what to process or cache and that’s it. There are a few things to keep in mind though:
Configure Cloudflare to NOT cache anything (set up exceptions using page rules, see below).
Don’t let Cloudflare touch your Javascript - specifically, turn off Rocket Loader.
I’m not sure about Brotli compression yet, I disabled it.
Set up page rules to cache the avatar and upload …