added visquitto app

This commit is contained in:
2026-10-04 16:40:36 +03:30
parent 9472cfff8d
commit 00cc2beec7
7 changed files with 134 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# Changelog
## 0.1.0
- Initializing the Application
+4
View File
@@ -0,0 +1,4 @@
FROM eclipse-mosquitto:2
COPY run.sh /run.sh
RUN chmod a+x /run.sh
CMD ["/run.sh"]
+61
View File
@@ -0,0 +1,61 @@
# Visquitto
Visquitto is a simple Mosquitto broker setup intended to run on a separate port and be used alongside [mqtt-cert-manager](../mqtt-cert-manager) and custom MQTT nodes.
This is not a full certificate-management platform or a Home Assistant-only app. It is a lightweight broker instance for local MQTT traffic, designed to coexist with [mqtt-cert-manager](../mqtt-cert-manager) and custom client code.
## What it is
- A standard Mosquitto broker
- Configured for a dedicated port, separate from the default broker
- Meant to be used alongside [mqtt-cert-manager](../mqtt-cert-manager) and custom MQTT nodes
- Intended for local/private network use
## Why use it
If you want a second MQTT broker for a specific project, workflow, or device group, Visquitto gives you:
- a clean, separate broker port
- a simple local MQTT endpoint for custom nodes and devices
- isolation from your main broker traffic
- an easy way to pair it with your own app logic
## Typical setup
Visquitto is designed to be used like this:
- Your main app runs normally
- Custom nodes or devices connect to the Visquitto broker
- The broker listens on its own port instead of the default Mosquitto port
- Traffic is kept separate from the primary broker environment
## Requirements
- A machine/container/environment capable of running Mosquitto
- A separate port for the broker
- Your own app and custom MQTT clients/nodes
- Local or private network access as needed
## Configuration
Common settings include:
- broker port
- listener configuration
- allow/deny rules if needed
- persistence settings
- logging options
- TLS settings if you choose to enable them
This project is intentionally minimal: it provides a broker for your other app and custom nodes rather than trying to manage a larger certificate or onboarding system.
## Notes
- This is a plain Mosquitto-based broker setup
- It is meant to complement another app, not replace it
- It is best suited for local experiments, custom node integrations, and paired app workflows
- If you are using TLS or custom auth, configure it explicitly for your environment
## License
Please check the repository license file for usage terms if one is included in the project.
+18
View File
@@ -0,0 +1,18 @@
name: Visquitto
version: "0.1.0"
slug: visquitto
description: Second private Mosquitto broker for bitopa nodes
arch:
- amd64
init: false
startup: services
boot: auto
ports:
1883/tcp: 1993
8883/tcp: 9993
ports_description:
1883/tcp: MQTT (plain)
8883/tcp: MQTT over TLS
map:
- addon_config:rw
- ssl:ro
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh
set -e
mkdir -p /data/mosquitto /config/certs
chown -R mosquitto:mosquitto /data/mosquitto
if [ ! -f /config/mosquitto.conf ]; then
cat > /config/mosquitto.conf <<'EOF'
allow_anonymous false
password_file /config/passwd
acl_file /config/acl
persistence true
persistence_location /data/mosquitto/
listener 1883
listener 8883
cafile /ssl/mqtt-cert-manager-ca.crt
certfile /ssl/mosquitto-server.crt
keyfile /ssl/mosquitto-server.key
tls_version tlsv1.2
EOF
touch /config/acl
fi
for f in passwd /ssl/mqtt-cert-manager-ca.crt /ssl/mosquitto-server.crt /ssl/mosquitto-server.key; do
if [ ! -f "/config/$f" ]; then
echo "Missing /config/$f, see the app docs" >&2
exit 1
fi
done
exec mosquitto -c /config/mosquitto.conf