# Linux SSL

إذا رغبت في نشر واستخدام ngSurvey على نظام Linux مع نطاق يعمل تحت SSL، يمكنك استخدام البرنامج النصي التالي الذي سيقوم بنشر ngSurvey باستخدام ngInx كـ reverse proxy مع تمكين SSL:

## Ubuntu

يمكنك استخدام برنامج shell النصي التالي من صدفة Ubuntu الخاصة بك.

```
curl -o ngs-ubuntu-ssl-docker.sh https://ngsurvey.s3.eu-central-1.amazonaws.com/ngs-ubuntu-ssl-docker.sh 
sudo chmod +x ./ngs-ubuntu-ssl-docker.sh 
sudo ./ngs-ubuntu-ssl-docker.sh YOURDOMAIN.COM
```

سيؤدي ذلك إلى توليد شهادة لنطاقك وتكوين ngSurvey تلقائيًا للعمل تحت قناة HTTPS مؤمنة.&#x20;

{% hint style="danger" %}
تأكد من تسجيل نطاقك بشكل صحيح في نظام DNS الخاص بك مع عنوان IP لمضيفك.   &#x20;
{% endhint %}

## قاعدة بيانات مخصصة

بشكل افتراضي سيستخدم البرنامج النصي أعلاه قاعدة بيانات mysql. إذا رغبت في استخدام قاعدة بياناتك الخاصة يمكنك تعديل الملف الذي تم تنزيله /srv/docker/ngsurveyee.ssl.mysql.yml من البرنامج النصي أعلاه واستخدام سلسلة الاتصال الخاصة بك لقاعدة البيانات ثم إعادة تشغيل إعداد ngSurvey باستخدام الأمر التالي.&#x20;

```
sudo docker-compose -f /srv/docker/ngsurveyee.ssl.mysql.yml up -d
```


---

# 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/installation-setup/installation/linux-ubuntu-centos/linux-ssl.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.
