> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ar/data-encryption/encryption-setup/transparent-encryption/iis-encryption-setup.md).

# إعداد تشفير IIS

إذا كنت تستخدم IIS لاستضافة الإصدار المحلي لديك، فيمكنك إعداد المتغير في محرر تكوين IIS كما هو موضح أدناه أو كبديل أكثر أمانًا يمكنك أيضًا استخدام [Azure key vault](https://azure.microsoft.com/en-us/services/key-vault/) لتخزين مفتاحك.&#x20;

{% hint style="info" %}
بينما يمكنك أيضًا تخزين المفتاح مباشرة في ملف web.config، نوصي بعدم استخدام هذا النهج وبدلاً من ذلك تعيين متغيرات البيئة إما على مستوى المستضيف الخاص بك أو باستخدام محرر تكوين IIS كما هو موضح أدناه. &#x20;
{% endhint %}

\
افتح واجهة إدارة IIS وانتقل إلى صفحة إعدادات الموقع الخاص بك.&#x20;

![](/files/dad15bae1a849f4de3492ae3725ef66f8cd7f91c)

من داخل محرر التكوين اختر خيار environmentVariables

![](/files/18d31220d9f1312b7ad1c97471760bc8815cb837)

من هناك يمكنك إدخال المفتاح الذي سيتم استخدامه للتشفير / فك التشفير.

![](/files/557b028912c09b85b4589928ffeb1e7ef150c599)

## 🔐 IIS / Azure key vault

لاستخدام Azure key vault لاستضافة وتخزين إعدادات ومفاتيح ngSurvey، يمكنك تعيين متغيرات البيئة التالية على خادمك.

* **KeyVault:Name** هو اسم Key vault الخاص بك
* **AzureAd:ClientId** هو معرّف العميل للوصول إلى Key vault الخاص بك
* **AzureAd:ClientSecret** هو السر الخاص بالعميل للوصول إلى Key vault الخاص بك


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ngsurvey.com/ar/data-encryption/encryption-setup/transparent-encryption/iis-encryption-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
