# كيفية حماية بيئة الاختبار بكلمة مرور؟

**URL:** <https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641>\
**Category:** Self-hosting\
**Created:** [21 أغسطس 2020، 9:25ص UTC](https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641 "2020-08-21T09:25:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [21 أغسطس 2020، 10:24ص UTC](https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641/5 "2020-08-21T10:24:02Z")

</div>

لست متأكدًا تمامًا من كيفية تحقيق ذلك، لكن ربما يتدخل شخص آخر إذا كانت لديه بعض الأفكار. يجب أن يكون ذلك ممكنًا مع بعض التعديلات في تكوين nginx.

كحل بديل، وبما أن هذا خادم مرحلي، هل يمكنك ببساطة تعطيل CDN؟ إذا استخدمت نفس النطاق للأصول، فسيتم إرسال رأس المصادقة إليها تلقائيًا، لذا لن تحتاج إلى إدخال كلمة مرور المصادقة مرة أخرى.

---

_[View the full topic](https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641)._
