Class CentralDogmaConfig
java.lang.Object
com.linecorp.centraldogma.server.CentralDogmaConfig
CentralDogma server configuration.-
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the access log format.@Nullable AuthConfigReturns theAuthConfig.Deprecated.Returns the sources that determines a client address.static @Nullable StringconvertValue(@Nullable String value, String propertyName) Converts the specifiedvalueusingConfigValueConverterif the specifiedvaluestarts with a prefix followed by a colon':'.@Nullable CorsConfigReturns theCorsConfig.dataDir()Returns the data directory.booleanReturns whether to enable the Thrift service.@Nullable EncryptionConfigReturns the encryption configuration.Returns the graceful shutdown timeout.Returns the timeout of an idle connection in milliseconds.booleanReturns whether a CSRF token is required for Thrift clients.booleanReturns whether web app is enabled.static CentralDogmaConfigLoads the configuration from the specifiedFile.static CentralDogmaConfigLoads the configuration from the specified JSON string.@Nullable ManagementConfigReturns theManagementConfig.Returns the maximum length of request content in bytes.Returns the maximum number of established connections.longReturns the maximum age of a removed repository in milliseconds.Returns the number of event loop threads.Map<Class<?>, PluginConfig> Returns the map ofPluginConfigs.Returns the list ofPluginConfigs.ports()Returns theServerPorts.Returns theReplicationConfig.Returns the cache spec of the repository cache.Returns the request timeout in milliseconds.@Nullable TlsConfigtls()Returns the TLS configuration.toString()Returns the IP addresses of the trusted proxy servers.@Nullable StringReturns the title of the web app.@Nullable ZoneConfigzone()Returns the zone information of the server.
-
Method Details
-
convertValue
Converts the specifiedvalueusingConfigValueConverterif the specifiedvaluestarts with a prefix followed by a colon':'. -
load
public static CentralDogmaConfig load(File configFile) throws JsonMappingException, JsonParseException Loads the configuration from the specifiedFile. -
load
Loads the configuration from the specified JSON string. -
dataDir
Returns the data directory. -
ports
Returns theServerPorts. -
tls
Returns the TLS configuration. -
encryption
Returns the encryption configuration. -
trustedProxyAddresses
Returns the IP addresses of the trusted proxy servers. If trusted, the sources specified inclientAddressSources()will be used to determine the actual IP address of clients. -
clientAddressSources
-
numWorkers
-
maxNumConnections
-
requestTimeoutMillis
-
idleTimeoutMillis
-
maxFrameLength
-
maxRemovedRepositoryAgeMillis
public long maxRemovedRepositoryAgeMillis()Returns the maximum age of a removed repository in milliseconds. A removed repository is first marked as removed, and then is purged permanently once the amount of time returned by this property passes since marked. -
cacheSpec
Deprecated.Returns therepositoryCacheSpec. -
repositoryCacheSpec
Returns the cache spec of the repository cache. -
gracefulShutdownTimeout
Returns the graceful shutdown timeout. -
isWebAppEnabled
public boolean isWebAppEnabled()Returns whether web app is enabled. -
webAppTitle
Returns the title of the web app. -
replicationConfig
Returns theReplicationConfig. -
isCsrfTokenRequiredForThrift
public boolean isCsrfTokenRequiredForThrift()Returns whether a CSRF token is required for Thrift clients. Note that it's not safe to enable this feature. It only exists for a legacy Thrift client that does not send a CSRF token. -
accessLogFormat
Returns the access log format. -
authConfig
Returns theAuthConfig. -
corsConfig
Returns theCorsConfig. -
pluginConfigs
Returns the list ofPluginConfigs. -
pluginConfigMap
Returns the map ofPluginConfigs. -
managementConfig
Returns theManagementConfig. -
zone
Returns the zone information of the server. Note that the zone must be specified to use thePluginTarget.ZONE_LEADER_ONLYtarget. -
enableThriftService
public boolean enableThriftService()Returns whether to enable the Thrift service. -
toString
-
repositoryCacheSpec().