# إعداد تشفير 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
