Skip to content

Commit ffd69b9

Browse files
committed
OCPP: make unencrypted default
1 parent 5f6cfc0 commit ffd69b9

2 files changed

Lines changed: 12 additions & 19 deletions

File tree

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,15 @@ For more detailed instructions, see the [full documentation](https://docs.evcc.i
5858

5959
## Available Services
6060

61-
| Service | Port | Protocol | URL |
62-
| ---------- | ---- | -------- | ----------------------------------- |
63-
| evcc UI | 443 | HTTPS | `https://evcc.local/` |
64-
| OCPP | 8887 | WSS | `wss://evcc.local:8887/<stationid>` |
65-
| Cockpit UI | 9090 | HTTPS | `https://evcc.local:9090/` |
66-
67-
**Note:** The above services use self-signed certificates.
68-
You'll need to accept the certificate warning in your browser, or disable certificate verification in your EV charger's OCPP configuration.
69-
If you have compatibility problems, use the unencrypted alternatives below:
70-
71-
| Service | Port | Protocol | URL |
72-
| ------- | ---- | -------- | ---------------------------------- |
73-
| evcc UI | 7070 | HTTP | `http://evcc.local:7070/` |
74-
| OCPP | 8886 | WS | `ws://evcc.local:8886/<stationid>` |
61+
| Service | Port | Protocol | URL | Note |
62+
| ---------- | ---- | -------- | ----------------------------------- | ------------------------------ |
63+
| evcc UI | 443 | HTTPS | `https://evcc.local/` | self-signed cert **(default)** |
64+
| | 7070 | HTTP | `http://evcc.local:7070/` | unencrypted |
65+
| OCPP | 8888 | WSS | `wss://evcc.local:8888/<stationid>` | self-signed cert |
66+
| | 8887 | WS | `ws://evcc.local:8887/<stationid>` | unencrypted **(default)** |
67+
| Cockpit UI | 9090 | HTTPS | `https://evcc.local:9090/` | self-signed cert |
68+
69+
The image offers an encrypted version for all services. We recommend using encrypted connections even in local networks. For OCPP, some EV chargers don't support self-signed certificates. Use unencrypted WS as a fallback.
7570

7671
## Administration
7772

userpatches/customize-image.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ mkdir -p /etc/systemd/system/evcc.service.d
266266
cat >/etc/systemd/system/evcc.service.d/override.conf <<EVCCCONF
267267
[Service]
268268
Environment="EVCC_NETWORK_HOST=${EVCC_HOSTNAME}.local"
269-
Environment="EVCC_NETWORK_EXTERNALURL=https://${EVCC_HOSTNAME}.local"
270-
Environment="EVCC_OCPP_PORT=8886"
271269
EVCCCONF
272270

273271
# Enable evcc service
@@ -386,13 +384,13 @@ https:// {
386384
reverse_proxy 127.0.0.1:7070
387385
}
388386
389-
# OCPP port forwarding: 8886 (HTTP) -> 8887 (HTTPS)
390-
:8887 {
387+
# OCPP secure alternative: 8887 (WS) -> 8888 (WSS)
388+
:8888 {
391389
tls internal {
392390
protocols tls1.2 tls1.3
393391
}
394392
log
395-
reverse_proxy 127.0.0.1:8886
393+
reverse_proxy 127.0.0.1:8887
396394
}
397395
398396
CADDY

0 commit comments

Comments
 (0)