<commit_before># Docker image that runs the Blynk server v0.16.0

## Build image

```
docker build -t blynk .
```
## Run image

```
docker run --restart=always \
-p 7443:7443 -p 8443:8443 \
-p 8442:8442 -p 8441:8441 \
-v /path/to/blynk-server-data:/data \
--name blynk -d pinya/blynk
```

## SSL

You can obtain free ssl certificates using [Let's Encrypt Certbot](https://certbot.eff.org/) or from [StartSSL](https://www.startssl.com/).

Put your `fullchain.crt` and `privkey.pem` to `blynk-data` folder.

Add these lines to `blynk-data/server.properties`
```
server.ssl.cert=/data/fullchain.crt
server.ssl.key=/data/privkey_pass.pem
server.ssl.key.pass=<PASSWORD>
```
Don't forget to encrypt your privkey and set password:

```
openssl pkcs8 -topk8 -inform PEM -outform PEM -in privkey.pem -out privkey_pass.pem<commit_msg>update version in readme and ssl instructions<commit_after># Docker image that runs the Blynk server v0.16.2

## Build image

```
docker build -t blynk .
```
## Run image

```
docker run --restart=always \
-p 7443:7443 -p 8443:8443 \
-p 8442:8442 -p 8441:8441 \
-v /path/to/blynk-server-data:/data \
--name blynk -d pinya/blynk
```

## SSL

You can obtain free ssl certificates using [Let's Encrypt Certbot](https://certbot.eff.org/) or from [StartSSL](https://www.startssl.com/).

Put your `fullchain.crt` and `privkey.pem` to `blynk-data` folder.

Add these lines to `blynk-data/server.properties`
```
server.ssl.cert=/data/fullchain.crt
server.ssl.key=/data/privkey_pass.pem
server.ssl.key.pass=<PASSWORD>

https.cert=/data/fullchain.crt
https.key=/data/privkey_pass.pem
https.key.pass=<PASSWORD>
```
Don't forget to encrypt your privkey and set password:

```
openssl pkcs8 -topk8 -inform PEM -outform PEM -in privkey.pem -out privkey_pass.pem
{'fraction_non_alphanumeric': 0.1507622811970638, 'fraction_numerical': 0.04291360813099943, 'mean_word_length': 3.935933147632312, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '156487', 'n_tokens_mistral': 763, 'n_tokens_neox': 680, 'n_words': 176}