diff --git a/docs/installation/freebsd.md b/docs/installation/freebsd.md new file mode 100644 index 000000000..66b6c1394 --- /dev/null +++ b/docs/installation/freebsd.md @@ -0,0 +1,94 @@ +--- +sidebar_position: 9 +--- + +# FreeBSD + +Diese Anleitung beschreibt die Installation für FreeBSD. + +## Erstinstallation + +- Öffne ein Terminal/Eingabeaufforderung (als root) + +- Installiere evcc: + + ```sh + pkg install evcc + ``` + +- evcc automatisch starten (beim Systemstart): + + ```sh + sysrc evcc_enable="YES" + ``` + +- Starte den evcc-Server: + + ```sh + service evcc start + ``` + +- Öffne die evcc Oberfläche in deinem Browser: [http://localhost:7070](http://localhost:7070) +- Die evcc Oberfläche fordert dich auf ein Administrator-Passwort zu vergeben +- Anschließend kannst du deine Geräte direkt über die Weboberfläche einrichten + +## Aktualisierung + +Um auf eine neue Version von evcc zu aktualisieren, führe folgende Schritte durch: + +- Prüfe [Releases](https://github.com/evcc-io/evcc/releases) für Breaking changes (BC) die deine Installation betreffen +- Öffne ein Terminal/Eingabeaufforderung (als root) +- Aktualisiere evcc: + + ```sh + pkg upgrade evcc + ``` + +- evcc neu starten: + + ```sh + service evcc restart + ``` + +## Weitere Befehle + +- Prüfe den Status des evcc-Servers: + + ```sh + service evcc status + ``` + +- Logs anzeigen: + + ```sh + tail -f /var/log/evcc.log + ``` + +## nginx als Reverse Proxy + +Wenn bereits ein nginx läuft, kann dieser mit einem neuen Virtualhost-Eintrag ergänzt werden: + +``` +server { + ... + server_name evcc. + ... + location / { + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $http_host; + + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + proxy_redirect off; + proxy_read_timeout 240s; + + proxy_http_version 1.1; + + proxy_pass http://127.0.0.1:7070; + } +} +``` + +Anschließend ist die evcc Oberfläche unter [http://evcc.**your-domain**/](http://evcc.your-domain/) erreichbar. diff --git a/docs/installation/index.md b/docs/installation/index.md index d1f618cd1..542e6cc0e 100644 --- a/docs/installation/index.md +++ b/docs/installation/index.md @@ -47,6 +47,11 @@ Falls du mehr über die Funktionsweise von Wallboxen und E-Auto-Laden erfahren m title="macOS" description="Via Homebrew." /> + + ... + location / { + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $http_host; + + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + proxy_redirect off; + proxy_read_timeout 240s; + + proxy_http_version 1.1; + + proxy_pass http://127.0.0.1:7070; + } +} +``` + +The evcc interface will then be available at [http://evcc.**your-domain**/](http://evcc.your-domain/). diff --git a/i18n/en/docusaurus-plugin-content-docs/current/installation/index.md b/i18n/en/docusaurus-plugin-content-docs/current/installation/index.md index 2c9667676..9e52ea364 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/installation/index.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/installation/index.md @@ -47,6 +47,11 @@ If you want to learn more about how wallboxes and EV charging work, first check title="macOS" description="Via Homebrew." /> +