mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
* Update mosquitto base image to alpine 3.14 * Replace mosquitto-auth-plug with mosquitto-go-auth * Add flags for linker before make https://github.com/iegomez/mosquitto-go-auth/issues/91#issuecomment-826943411 * In-place sed * Debian base, new packages, set hasher * Fix DL3009 * Update changelog * Clean go cache and link to mosquitto changelog * Update config.yaml Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
69 lines
1.4 KiB
Groovy
69 lines
1.4 KiB
Groovy
protocol mqtt
|
|
user root
|
|
log_dest stdout
|
|
log_type error
|
|
log_type warning
|
|
log_type notice
|
|
log_type information
|
|
persistence true
|
|
persistence_location /data/
|
|
|
|
# Authentication plugin
|
|
auth_plugin /usr/share/mosquitto/go-auth.so
|
|
auth_opt_backends files,http
|
|
auth_opt_hasher pbkdf2
|
|
auth_opt_cache true
|
|
auth_opt_auth_cache_seconds 300
|
|
auth_opt_auth_jitter_seconds 30
|
|
auth_opt_acl_cache_seconds 300
|
|
auth_opt_acl_jitter_seconds 30
|
|
auth_opt_log_level error
|
|
|
|
# HTTP backend for the authentication plugin
|
|
auth_opt_files_password_path /etc/mosquitto/pw
|
|
auth_opt_files_acl_path /etc/mosquitto/acl
|
|
|
|
# HTTP backend for the authentication plugin
|
|
auth_opt_http_host 127.0.0.1
|
|
auth_opt_http_port 80
|
|
auth_opt_http_getuser_uri /authentication
|
|
auth_opt_http_superuser_uri /superuser
|
|
auth_opt_http_aclcheck_uri /acl
|
|
|
|
{{ if .customize }}
|
|
include_dir /share/{{ .customize_folder }}
|
|
{{ end }}
|
|
|
|
listener 1883
|
|
protocol mqtt
|
|
|
|
listener 1884
|
|
protocol websockets
|
|
|
|
{{ if .ssl }}
|
|
|
|
# Follow SSL listener if a certificate exists
|
|
listener 8883
|
|
protocol mqtt
|
|
{{ if .cafile }}
|
|
cafile {{ .cafile }}
|
|
{{ else }}
|
|
cafile {{ .certfile }}
|
|
{{ end }}
|
|
certfile {{ .certfile }}
|
|
keyfile {{ .keyfile }}
|
|
require_certificate {{ .require_certificate }}
|
|
|
|
listener 8884
|
|
protocol websockets
|
|
{{ if .cafile }}
|
|
cafile {{ .cafile }}
|
|
{{ else }}
|
|
cafile {{ .certfile }}
|
|
{{ end }}
|
|
certfile {{ .certfile }}
|
|
keyfile {{ .keyfile }}
|
|
require_certificate {{ .require_certificate }}
|
|
|
|
{{ end }}
|