mirror of https://github.com/statping/statping
Updated SSL (markdown)
parent
3e4dcd7e01
commit
b24a584d20
17
SSL.md
17
SSL.md
|
@ -1,4 +1,19 @@
|
|||
Statping currently does not serve HTTPS with a SSL certificate as of today. I recommend using NGINX or Apache to serve the SSL and then have the webserver direct traffic to the Statping instance. This guide will show you how to implement SSL onto your Statping server with multiple options.
|
||||
You can run Statping with a valid certificate by including 2 files in the root directory. Although, I personally recommend using NGINX or Apache to serve the SSL and then have the webserver direct traffic to the Statping instance. This guide will show you how to implement SSL onto your Statping server with multiple options.
|
||||
|
||||
## SSL Certificate with Statping
|
||||
To run the Statping HTTP server in SSL mode, you must include 2 files in the root directory of your Statping application. The 2 files you must include are:
|
||||
- `server.crt` SSL Certificate File
|
||||
- `server.key` SSL Certificate Key File
|
||||
|
||||
The filenames and extensions must match the exact naming above. If these 2 files are found, Statping will automatically start the HTTP server in SSL mode using your certificates. You can also generate your own SSL certificates, but you will receive a "ERR_CERT_AUTHORITY_INVALID" error. To generate your own, follow the commands below:
|
||||
|
||||
```shell
|
||||
openssl req -new -sha256 -key server.key -out server.csr
|
||||
openssl x509 -req -sha256 -in server.csr -signkey server.key -out server.crt -days 3650
|
||||
```
|
||||
This will generate a self signed certificate that you can use for your Statup instance. I recommend using a web server to do SSL termination for your server though.
|
||||
|
||||
## Choose a Web Server or Environment
|
||||
|
||||
**Choose the environment running the Statping instance.**
|
||||
- [Docker](#docker)
|
||||
|
|
Loading…
Reference in New Issue