# Linux SSL

If you would like to deploy and use ngSurvey on a Linux with a domain running under SSL you may use following script that will deploy ngSurvey using an ngInx SSL enabled reverse proxy :

## Ubuntu

you may use following shell script from your Ubuntu shell.

```
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
```

This will generate a certificate for your domain and automatically configure ngSurvey under an secured HTTPS channel.&#x20;

{% hint style="danger" %}
Make sure that your domain is properly registered in your DNS with your host IP.   &#x20;
{% endhint %}

## Custom database

By default the script above will use a mysql database. If you would like to use your own database you may modify the downloaded /srv/docker/ngsurveyee.ssl.mysql.yml file from the script above and use your own connectionstring to your database and then restart your ngsurvey setup using following command.&#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/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.
