2014-02-22 11:14:56 +01:00
|
|
|
##############################################
|
|
|
|
|
# Moquette configuration file.
|
|
|
|
|
#
|
|
|
|
|
# The synthax is equals to mosquitto.conf
|
|
|
|
|
#
|
|
|
|
|
##############################################
|
|
|
|
|
|
|
|
|
|
port 1883
|
|
|
|
|
|
2014-05-18 12:02:18 +02:00
|
|
|
websocket_port 8080
|
|
|
|
|
|
2015-06-30 22:44:22 +02:00
|
|
|
#*********************************************************************
|
|
|
|
|
# Secure Websocket port (wss)
|
|
|
|
|
# decommend this to enable wss
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# secure_websocket_port 8883
|
|
|
|
|
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# SSL tcp part
|
|
|
|
|
# jks_path: define the file that contains the Java Key Store,
|
|
|
|
|
# relative to the current broker home
|
|
|
|
|
#
|
|
|
|
|
# key_store_password: is the password used to open the keystore
|
|
|
|
|
#
|
|
|
|
|
# key_manager_password: is the password used to manage the alias in the
|
|
|
|
|
# keystore
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# ssl_port 8883
|
|
|
|
|
#jks_path serverkeystore.jks
|
|
|
|
|
#key_store_password passw0rdsrv
|
|
|
|
|
#key_manager_password passw0rdsrv
|
|
|
|
|
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# The interface to bind the server
|
|
|
|
|
# 0.0.0.0 means "any"
|
|
|
|
|
#*********************************************************************
|
2014-03-02 18:16:50 +01:00
|
|
|
host 0.0.0.0
|
|
|
|
|
|
2016-12-31 16:06:18 +01:00
|
|
|
#*********************************************************************
|
|
|
|
|
# The file for the persistent store, if not specified, use just memory
|
|
|
|
|
# no physical persistence
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
#persistent_store ./moquette_store.mapdb
|
|
|
|
|
|
2015-05-20 21:28:36 +02:00
|
|
|
#*********************************************************************
|
|
|
|
|
# acl_file:
|
|
|
|
|
# defines the path to the ACL file relative to moquette home dir
|
|
|
|
|
# contained in the moquette.path system property
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
#acl_file config/acl.conf
|
2015-04-25 19:49:41 +02:00
|
|
|
|
2015-05-20 21:28:36 +02:00
|
|
|
#*********************************************************************
|
|
|
|
|
# allow_anonymous is used to accept MQTT connections also from not
|
|
|
|
|
# authenticated clients.
|
|
|
|
|
# - false to accept ONLY client connetions with credentials.
|
|
|
|
|
# - true to accept client connection without credentails, validating
|
|
|
|
|
# only against the password_file, the ones that provides.
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
allow_anonymous true
|
|
|
|
|
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# password_file:
|
|
|
|
|
# defines the path to the file that contains the credentials for
|
|
|
|
|
# authenticated client connection. It's relative to moquette home dir
|
|
|
|
|
# defined by the system property moquette.path
|
|
|
|
|
#*********************************************************************
|
2015-06-30 22:44:22 +02:00
|
|
|
password_file config/password_file.conf
|
2015-07-23 19:56:48 +02:00
|
|
|
|
|
|
|
|
|
2016-05-13 11:29:08 +02:00
|
|
|
#*********************************************************************
|
|
|
|
|
# Optional Database Authentication
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# authenticator_class io.moquette.spi.impl.security.DBAuthenticator
|
|
|
|
|
# authenticator.db.driver org.postgresql.Driver
|
|
|
|
|
# authenticator.db.url jdbc:postgresql://localhost/test?user=dbuser&password=dbpassword
|
|
|
|
|
# authenticator.db.query SELECT PASSWORD FROM ACCOUNT WHERE LOGIN=?
|
|
|
|
|
# authenticator.db.digest SHA-256
|
|
|
|
|
|
2015-07-23 19:56:48 +02:00
|
|
|
#*********************************************************************
|
|
|
|
|
# Optional
|
|
|
|
|
# authorizator_class:
|
|
|
|
|
# class name of the authorizator, by default uses the
|
|
|
|
|
# password_file.conf.
|
2015-11-20 20:54:27 +01:00
|
|
|
# If not specified uses the class: AuthorizationsCollector
|
2015-07-23 19:56:48 +02:00
|
|
|
#
|
|
|
|
|
# Optional
|
|
|
|
|
# authenticator_class:
|
|
|
|
|
# class name of the authenticator, default implementation uses
|
|
|
|
|
# definitions in the acl.conf.
|
2015-11-20 20:54:27 +01:00
|
|
|
# If not specified uses FileAuthenticator
|
2015-07-23 19:56:48 +02:00
|
|
|
#*********************************************************************
|
|
|
|
|
# authenticator_class [[path to your class>]]
|
2015-11-22 16:56:40 +01:00
|
|
|
# authorizator_class [[path to your class>]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# Persistence configuration
|
|
|
|
|
# autosave_interval:
|
|
|
|
|
# interval between flushes of MapDB storage to disk. It's in
|
|
|
|
|
# seconds, if not specified defaults is 30 s.
|
|
|
|
|
#*********************************************************************
|
2017-05-18 15:38:39 +02:00
|
|
|
# autosave_interval 120
|
|
|
|
|
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
# Netty Configuration
|
|
|
|
|
#*********************************************************************
|
|
|
|
|
#
|
|
|
|
|
# Linux systems can use epoll instead of nio. To get a performance
|
|
|
|
|
# gain and reduced GC.
|
|
|
|
|
# http://netty.io/wiki/native-transports.html for more information
|
|
|
|
|
#
|
|
|
|
|
# netty.epoll=true
|