Files
IM-server-new/distribution/src/main/resources/moquette.conf
T

156 lines
6.3 KiB
Plaintext

##############################################
# Moquette configuration file.
#
# The synthax is equals to mosquitto.conf
#
##############################################
port 1883
websocket_port 8080
#*********************************************************************
# Secure Websocket port (wss)
# decommend this to enable wss
#*********************************************************************
# secure_websocket_port 8883
#*********************************************************************
# SSL tcp part
# ssl_provider: defines the SSL implementation to use, default to "JDK"
# supported values are "JDK", "OPENSSL" and "OPENSSL_REFCNT"
# By choosing one of the OpenSSL implementations the crypto
# operations will be performed by a native Open SSL library.
#
# jks_path: define the file that contains the Java Key Store,
# relative to the current broker home
#
# key_store_type: defines the key store container type, default to "jks"
# supported values are "jceks", "jks" and "pkcs12"
# The "jceks" and "jks" key stores are a propietary SUN
# implementations. "pkcs12" is defined in PKCS#12 standard.
#
# 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_provider JDK
#ssl_port 8883
#jks_path serverkeystore.jks
#key_store_type jks
#key_store_password passw0rdsrv
#key_manager_password passw0rdsrv
#*********************************************************************
# The interface to bind the server
# 0.0.0.0 means "any"
#*********************************************************************
host 0.0.0.0
#*********************************************************************
# The file for the persistent store, if not specified, use just memory
# no physical persistence
#*********************************************************************
#persistent_store ./moquette_store.h2
#*********************************************************************
# 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
#*********************************************************************
# 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
#*********************************************************************
password_file config/password_file.conf
#*********************************************************************
# Optional Database Authentication
#*********************************************************************
# authenticator_class io.moquette.broker.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
#*********************************************************************
# Optional
# authorizator_class:
# class name of the authorizator, by default uses the
# password_file.conf.
# If not specified uses the class: AuthorizationsCollector
#
# Optional
# authenticator_class:
# class name of the authenticator, default implementation uses
# definitions in the acl.conf.
# If not specified uses FileAuthenticator
# Optional
# reauthorize_subscriptions_on_connect:
# true to force the validation of authorizations of existing
# subscriptions when the client reconnects with not clean session
#*********************************************************************
# authenticator_class [[path to your class>]]
# authorizator_class [[path to your class>]]
# reauthorize_subscriptions_on_connect true|false
#*********************************************************************
# Persistence configuration
# autosave_interval:
# interval between flushes of MapDB storage to disk. It's in
# seconds, if not specified defaults is 30 s.
#*********************************************************************
# autosave_interval 120
#*********************************************************************
# Netty Configuration
#
# netty.epoll: 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.mqtt.message_size : by default the max size of message is set at 8092 bytes
# http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/errata01/os/mqtt-v3.1.1-errata01-os-complete.html#_Toc442180836
# Fore more information about payload size specs.
#*********************************************************************
# netty.epoll true
# netty.mqtt.message_size 8092
#*********************************************************************
# Metrics Configuration
#
# use_metrics: used to enable Dropwizard Metrics sampling metrics.
# metrics.librato.email: Librato account's email
# metrics.librato.token: Librato account's security token
# metrics.librato.source: your application as source in Librato
# definitions
#*********************************************************************
# use_metrics true
# metrics.librato.email [email protected]
# metrics.librato.token sdfergheghliuhyr2283ehd9827398h
# metrics.librato.source My Fantastic Service
#*********************************************************************
# Error Monitoring
#
# use_bugsnag: used to enable BugSnag error handler catcher.
# bugsnag.token: the token from your's bugsnag account
#*********************************************************************
# use_bugsnag false
# bugsnag.token wleifb8723784dbfeig74