Apache Apollo is a proxy server that is mainly used for message request forwarding, and the following is an introduction to some of its commonly used configuration files 1. users.properties: It is used to configure who can use the server and the corresponding passwords. Its storage method in the file is: username = password, such as: lily=123456 It means that a new user is added, the username is lily, and the password is 123456 2. groups.properties: User mapping of holding groups simplifies access control lists through groups instead of individual users. You can set up multiple users for a defined group, and users can use "| Divide, such as: admins=admin|lily Indicates that there are two users in the admins group, admin and lily 3. black-list.txt: It is used to store IP addresses that are not allowed to connect to servers, which is equivalent to something like a blacklist. For example:
10.20.9.147 It means that the above IP cannot connect to the server. 4. login.config: is a server authentication profile that provides authentication for security apollo version 1.6, only the corresponding username and correct password can be connected server. 5. apollo.xml of the main configuration file of the server: This profile is used to control open ports, queues, security, web hosting settings, and more. 1. Authentication: You can use <authenticationdomain="internal" /> to configure whether to connect to authentication, if its attribute enable is set to false, it means that anyone can connect to the server without authentication, the default is true 2. access_rule: It can be used to define various behaviors of users towards server resources in broker or virtual_host. For example: <access_rule allow="users" action="connect create, destroy send receive consume"/> indicates that users in the group users can perform the following operations on server resources: connect, create, destroy, send, receive, consume. Detailed operating instructions can be found at:
http://activemq.apache.org/apollo/documentation/user-manual.html 3. message stores: By default, apollo uses the LevelDB store, but it is recommended to use the BDB store (cross-platform) to only use one of them. The configuration for using LevelDB store is: <leveldb_store directory="${apollo.base}/data"/> is provided by default without any modifications. To use BDB store, you need to go to the jar package support http://download.Oracle.com/maven/com/sleepycat/je/5.0.34/je-5.0.34.jar under the website, place the jar package under the lib directory of the server, and then change the configuration file to: <bdb_store directory="${apollo.base}/data"/>That's it. 4. Connector: Used to configure the link protocol supported by the server and the corresponding port. For example: <connector id="tcp" bind="tcp://0.0.0.0:61613" connection_limit="2000" protocol="mqtt"/>It means that TCP links are supported, the port used is 61613, the link limit is 2000, and the protocol for automatic listening is MQTT protocol。
|