added eclipse-mosquitto
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
# Setup OpenVPN
|
||||
|
||||
## Intro
|
||||
|
||||
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/)
|
||||
|
||||
|
||||
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.
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
I used 2 VPNs in my home setup
|
||||
|
||||
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.
|
||||
|
||||
9
configurations/eclipse-mosquitto/mosquitto.conf
Normal file
9
configurations/eclipse-mosquitto/mosquitto.conf
Normal 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
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
- 10.55.8.3:8123:8123
|
||||
volumes:
|
||||
- /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
|
||||
syncthing:
|
||||
image: lscr.io/linuxserver/syncthing:latest
|
||||
|
||||
@@ -9,4 +9,12 @@ services:
|
||||
network_mode: "host"
|
||||
image: "traefik:1.7.10"
|
||||
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
0
raspberrypi/log/.gitkeep
Normal file
Reference in New Issue
Block a user