bunkerm
This commit is contained in:
parent
34bf7e85fd
commit
af3f61ed24
|
|
@ -0,0 +1,21 @@
|
||||||
|
services:
|
||||||
|
bunkerm:
|
||||||
|
image: bunkeriot/bunkerm:latest
|
||||||
|
container_name: bunkerm
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "1883:1900"
|
||||||
|
volumes:
|
||||||
|
- /docker/data/bunkerm/mosquitto_data:/var/lib/mosquitto
|
||||||
|
- ./config/mosquitto:/etc/mosquitto
|
||||||
|
- /docker/data/bunkerm/data:/data
|
||||||
|
- /docker/data/bunkerm/history:/var/lib/history
|
||||||
|
environment:
|
||||||
|
- HISTORY_MAX_MESSAGES=50000
|
||||||
|
- HISTORY_MAX_AGE_DAYS=7
|
||||||
|
networks:
|
||||||
|
- caddy_default
|
||||||
|
networks:
|
||||||
|
caddy_default:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
# MQTT listener on port 1900
|
||||||
|
listener 1900
|
||||||
|
per_listener_settings false
|
||||||
|
allow_anonymous false
|
||||||
|
|
||||||
|
# HTTP listener for Dynamic Security Plugin on port 8080
|
||||||
|
listener 8080
|
||||||
|
#password_file /etc/mosquitto/passwd
|
||||||
|
password_file /etc/mosquitto/mosquitto_passwd
|
||||||
|
# Dynamic Security Plugin configuration
|
||||||
|
plugin /usr/lib/mosquitto_dynamic_security.so
|
||||||
|
plugin_opt_config_file /var/lib/mosquitto/dynamic-security.json
|
||||||
|
log_dest file /var/log/mosquitto/mosquitto.log
|
||||||
|
log_type all
|
||||||
|
log_timestamp true
|
||||||
|
persistence true
|
||||||
|
persistence_location /var/lib/mosquitto/
|
||||||
|
persistence_file mosquitto.db
|
||||||
|
|
@ -119,6 +119,18 @@ photo.aggtaa.com {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mqtt.aggtaa.com {
|
||||||
|
forward_auth auth:9091 {
|
||||||
|
uri /api/authz/forward-auth
|
||||||
|
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
|
||||||
|
}
|
||||||
|
|
||||||
|
reverse_proxy bunkerm:2000
|
||||||
|
log {
|
||||||
|
output file /var/log/caddy/mqtt.aggtaa.com.log
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
quest.aggtaa.com {
|
quest.aggtaa.com {
|
||||||
|
|
||||||
reverse_proxy tidyquest:3000
|
reverse_proxy tidyquest:3000
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue