matth-x / MicroOcppSimulator

GNU General Public License v3.0
98 stars 44 forks source link

Enable TLS for HTTP API and add endpoints #32

Closed matth-x closed 1 month ago

matth-x commented 1 month ago

This PR adds a few more endpoints to the HTTP API of the Simulator and enables secure access via TLS and HTTP Basic Auth so that the Simulator can run on a public server and expose its API to the internet.

To configure the public HTTP API, the following files need to be provided in the mo_store folder:

{
    "url": "https://0.0.0.0:8443",
    "user": "<HTTP Basic Auth user>",
    "pass": "<HTTP Basic Auth password>"
}