added eclipse-mosquitto

This commit is contained in:
2022-11-17 23:57:30 +01:00
parent 7ce3c4f6a9
commit e545a7d823
8 changed files with 31 additions and 4 deletions

View File

@@ -1,6 +1,15 @@
# Setup OpenVPN # Setup OpenVPN
## Intro
OpenVPN is used for the connection between the home-server and the home network. OpenVPN is used for the connection between the home-server and the home network.
It can be easily set up using [this link](https://pivpn.io/) It can be easily set up using [this link](https://pivpn.io/)
OpenVPN3 clients can easily be downloaded and installed using the
[following link](https://openvpn.net/cloud-docs/openvpn-3-client-for-linux/)
## To Do
Make sure that the home-server is always reconnecting to the VPN when starting up.

View File

@@ -3,6 +3,7 @@
I used 2 VPNs in my home setup I used 2 VPNs in my home setup
1. Unify VPN 1. Unify VPN
2. WireGuard VPN 2. OpenVPN (= PiVPN)
Reason being that Unify VPN is not easy to set up for an ubuntu machine, and I was not able to configure my VPS with it. That is why I set up a wireguard VPN to connect my local network to the VPS. Reason being that Unify VPN is not easy to set up for an ubuntu machine, and I was unable to configure my VPS with it.
That is why I set up an openVPN to connect my local network to the home-server.

View File

@@ -0,0 +1,9 @@
listener 1883
persistence false
# persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
## Authentication ##
# By default, Mosquitto >=2.0 allows only authenticated connections. Change to true to enable anonymous connections.
allow_anonymous true
# password_file /mosquitto/config/password.txt

View File

@@ -6,7 +6,7 @@ services:
- 10.55.8.3:8123:8123 - 10.55.8.3:8123:8123
volumes: volumes:
- /home/willem/homeassistant:/config - /home/willem/homeassistant:/config
- /home/willem/repos/homeAutomation/home-assistant/configuration.yaml:/config/configuration.yaml - /home/willem/repos/homeAutomation/configurations/home-assistant/configuration.yaml:/config/configuration.yaml
restart: unless-stopped restart: unless-stopped
syncthing: syncthing:
image: lscr.io/linuxserver/syncthing:latest image: lscr.io/linuxserver/syncthing:latest

View File

@@ -9,4 +9,12 @@ services:
network_mode: "host" network_mode: "host"
image: "traefik:1.7.10" image: "traefik:1.7.10"
volumes: volumes:
- /home/pi/repos/homeAutomation/traefik/traefik.1.7.10.toml:/etc/traefik/traefik.toml - /home/pi/repos/homeAutomation/configurations/traefik/traefik.1.7.10.toml:/etc/traefik/traefik.toml
mosquitto:
image: eclipse-mosquitto:2
volumes:
- /home/pi/repos/homeAutomation/configurations/eclipse-mosquitto/:/mosquitto/config/:ro
- ./log/:/mosquitto/log/
ports:
- 1883:1883
- 9001:9001

0
raspberrypi/log/.gitkeep Normal file
View File