DeepWatch Identity Application Configuration (Dev86 Profile)
This YAML file contains the configuration settings for the DeepWatch Identity application, running in the 'dev86' profile. It includes details about server settings, database connection, Redis cluster configuration, security authentication, logging levels, and application-specific settings.
Server Settings
- 'server.port': Sets the port number for the application to 9999.
- 'server.servlet.context-path': Defines the context path for the application as '/identity'.
- 'server.compression.enabled': Enables compression for responses.
- 'server.tomcat.accesslog': Configures the Tomcat access log, enabling it and setting the directory, prefix, and other options.
Database Connection
- 'spring.datasource.url': Specifies the connection URL for the MySQL database, including details about hostname, port, database name, and character encoding.
- 'spring.datasource.username': Sets the username for the database connection.
- 'spring.datasource.password': Sets the password for the database connection.
- 'spring.datasource.type': Sets the type of data source to be used, in this case, 'com.zaxxer.hikari.HikariDataSource'.
- 'spring.datasource.driverClassName': Specifies the driver class for the MySQL database.
- 'spring.datasource.hikari': Configures the HikariCP connection pool, setting connection timeout, idle timeout, maximum lifetime, connection test query, and driver class name.
Redis Cluster Configuration
- 'spring.redis.timeout': Sets the timeout for Redis operations to 3 seconds.
- 'spring.redis.cluster.nodes': Defines the list of Redis nodes in the cluster, specifying their hostname and port. It's important to note that these nodes are specifically for testing and may differ from production environments.
- 'spring.redis.cluster.max-redirects': Sets the maximum number of redirects allowed for cluster operations.
- 'spring.redis.cluster-ext.enabled': Enables extended features for Redis cluster management.
- 'spring.redis.jedis.pool': Configures the Jedis connection pool, specifying the maximum idle connections, minimum idle connections, maximum active connections, and maximum wait time.
- 'spring.redis.database': Sets the Redis database number to 0.
Security Authentication
- 'security.oauth2.client': Defines the OAuth2 client configuration, including client ID, client secret, authorized grant types, and access token validity duration.
- 'security.oauth2.resource.token-info-uri': Specifies the URI for retrieving token information.
Logging
- 'logging.level': Sets the logging level for various packages and classes. The 'com.chinamobile.deepwatch.identity' package is set to 'debug', while the 'org.springframework.security' package is set to 'trace'.
Application-Specific Settings
- 'configs.com.cmss.dw.common.operate-log.enabled': Disables the operation log feature.
- 'configs.com.cmss.dw.common.security.ignored': Defines the URLs that are ignored by security checks.
- 'configs.com.cmss.dw.common.security.crypto.enabled': Enables cryptographic operations.
- 'configs.com.cmss.dw.common.security.crypto.rsa': Configures RSA encryption parameters, providing public and private keys.
- 'configs.com.cmss.dw.identity.kaptcha.enabled': Disables the Kaptcha (captcha) feature.
- 'configs.com.cmss.dw.identity.mysql.version.enabled': Enables MySQL version checking.
- 'configs.com.cmss.dw.identity.oauth2-aux.token-uri': Specifies the URI for obtaining OAuth2 tokens.
- 'configs.com.cmss.dw.identity.oauth2-aux.token-revoke-uri': Specifies the URI for revoking OAuth2 tokens.
- 'configs.com.cmss.dw.identity.permission.stmt.enabled': Enables permission statement checking.
- 'configs.com.cmss.dw.identity.aux.smsCodeRetry': Sets the retry count for SMS code verification to 5.
- 'configs.com.cmss.dw.identity.aux.nxConfig.timeUnit': Sets the time unit for a configuration to 'MINUTES'.
- 'configs.com.cmss.dw.identity.aux.nxConfig.timeout': Sets the timeout for a configuration to 5 minutes.
This configuration file provides a comprehensive set of settings for the DeepWatch Identity application, ensuring proper operation and security in the 'dev86' environment.
原文地址: https://www.cveoy.top/t/topic/ohyV 著作权归作者所有。请勿转载和采集!