Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,16 @@ And the `statics.json` file will be like this:
}
]
```

## Use a production certificate
The image uses the self-signed certificate. It is represented as `server-key.pem` and `server-cert.pem` files in a `data` folder. But there is an ability to replace it with your production certificate.

If you have a PFX file, it should be [converted to `key` and `cert` files with the openssl tool](https://www.bluelabellabs.com/blog/how-to-export-certificates-from-windows-for-use-in-apache-nginx-on-linux/).
Then the files should be bound to a container.

```
docker run -d -p 8443:8000 \
-v $PWD/examples/rewrite/server.key:/data/server-key.pem \
-v $PWD/examples/rewrite/cert.pem:/data/server-cert.pem \
fabriciomendonca/json-server-https
```