This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0793f25
commit e815bab
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ | |
"usermod", | ||
"userns", | ||
"vaultwarden", | ||
"websockets", | ||
"workdir", | ||
"zmqpubrawblock", | ||
"zmqpubrawtx" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
= Eclipse Mosquitto | ||
:experimental: | ||
:keywords: eclipse home-assistant mosquitto mqtt podman | ||
:icons: font | ||
ifdef::env-github[] | ||
:tip-caption: :bulb: | ||
:note-caption: :information_source: | ||
:important-caption: :heavy_exclamation_mark: | ||
:caution-caption: :fire: | ||
:warning-caption: :warning: | ||
endif::[] | ||
:Eclipse-Mosquitto: https://mosquitto.org/[Eclipse Mosquitto] | ||
|
||
This pod provides an {Eclipse-Mosquitto} https://mqtt.org/[MQTT] server. | ||
|
||
== Usage | ||
|
||
The Eclipse Mosquitto configuration is kept in the https://github.com/jwillikers/eclipse-mosquitto-config[Eclipse Mosquitto Config] repository. | ||
|
||
. Clone the https://github.com/jwillikers/esphome-config[Eclipse Mosquitto Config] repository. | ||
+ | ||
[,sh] | ||
---- | ||
git -C ~/Projects clone https://github.com/jwillikers/eclipse-mosquitto-config.git | ||
---- | ||
|
||
. Open the default Eclipse Mosquitto ports, 8123, in the firewall, since rootless Podman won't be able to open this for us. | ||
+ | ||
[,sh] | ||
---- | ||
sudo firewall-cmd --add-port=1883/tcp --permanent | ||
---- | ||
|
||
. Reload the firewall rules that were just saved. | ||
+ | ||
[,sh] | ||
---- | ||
sudo firewall-cmd --reload | ||
---- | ||
|
||
. Follow the <<../caddy/README.adoc,instructions for Caddy>> if using websockets. | ||
|
||
. Create the directory for Podman's systemd generator. | ||
+ | ||
[,sh] | ||
---- | ||
mkdir -p ~/.config/containers/systemd | ||
---- | ||
|
||
. Symlink the `podman.network` and `eclipse-mosquitto.kube` files to the `~/.config/containers/systemd/` directory. | ||
+ | ||
[,sh] | ||
---- | ||
ln --force --relative --symbolic ../podman.network eclipse-mosquitto.kube ~/.config/containers/systemd/ | ||
---- | ||
|
||
. Load the newly added systemd units. | ||
+ | ||
[,sh] | ||
---- | ||
systemctl --user daemon-reload | ||
---- | ||
|
||
. Start Eclipse Mosquitto. | ||
+ | ||
[,sh] | ||
---- | ||
systemctl --user start eclipse-mosquitto | ||
---- |