You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sonar.properties 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. #--------------------------------------------------------------------------------------------------
  2. # IMPORTANT:
  3. # This file will *not* be reloaded when using the api/system/restart endpoint.
  4. # In order for any change made to this file to be taken into account, you must perform a full
  5. # restart of the main SonarQube service.
  6. #--------------------------------------------------------------------------------------------------
  7. # Property values can:
  8. # - be overridden by environment variables. The name of the corresponding environment variable is the
  9. # upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by
  10. # underscores ('_'). For example, to override 'sonar.web.systemPasscode' use 'SONAR_WEB_SYSTEMPASSCODE'.
  11. # - be encrypted. See https://docs.sonarsource.com/sonarqube/latest/instance-administration/security/#settings-encryption
  12. #--------------------------------------------------------------------------------------------------
  13. # DATABASE
  14. #
  15. # IMPORTANT:
  16. # - The embedded H2 database is used by default. It is recommended for tests but not for
  17. # production use. Supported databases are Oracle, PostgreSQL and Microsoft SQLServer.
  18. # - Changes to database connection URL (sonar.jdbc.url) can affect SonarSource licensed products.
  19. # User credentials.
  20. # Permissions to create tables, indices and triggers must be granted to JDBC user.
  21. # The schema must be created first.
  22. #sonar.jdbc.username=
  23. #sonar.jdbc.password=
  24. #----- Embedded Database (default)
  25. # H2 embedded database server listening port, defaults to 9092
  26. #sonar.embeddedDatabase.port=9092
  27. #----- Oracle 19c/21c
  28. # The Oracle JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/.
  29. # Only the thin client is supported, and we recommend using the latest Oracle JDBC driver. See
  30. # https://jira.sonarsource.com/browse/SONAR-9758 for more details.
  31. # If you need to set the schema, please refer to http://jira.sonarsource.com/browse/SONAR-5000
  32. #sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/XE
  33. #----- PostgreSQL 11 or greater
  34. # By default the schema named "public" is used. It can be overridden with the parameter "currentSchema".
  35. #sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube?currentSchema=my_schema
  36. #----- Microsoft SQLServer 2014/2016/2017/2019/2022 and SQL Azure
  37. # A database named sonar must exist and its collation must be case-sensitive (CS) and accent-sensitive (AS)
  38. # Use the following connection string if you want to use integrated security with Microsoft Sql Server
  39. # Do not set sonar.jdbc.username or sonar.jdbc.password property if you are using Integrated Security
  40. # For Integrated Security to work, you have to download the Microsoft SQL JDBC Auth 12.4.2 package from
  41. # https://github.com/microsoft/mssql-jdbc/releases/download/v12.4.2/mssql-jdbc_auth.zip
  42. # and 'mssql-jdbc_auth-12.4.2.x64.dll' to your path.
  43. #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true
  44. # Use the following connection string if you want to use SQL Auth while connecting to MS Sql Server.
  45. # Set the sonar.jdbc.username and sonar.jdbc.password appropriately.
  46. #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar
  47. #----- Connection pool settings
  48. # The maximum number of active connections that can be allocated
  49. # at the same time, or negative for no limit.
  50. # The recommended value is 1.2 * max sizes of HTTP pools. For example if HTTP ports are
  51. # enabled with default sizes (50, see property sonar.web.http.maxThreads)
  52. # then sonar.jdbc.maxActive should be 1.2 * 50 = 60.
  53. #sonar.jdbc.maxActive=60
  54. # The minimum number of connections that can remain idle in the pool,
  55. # without extra ones being created, or zero to create none.
  56. #sonar.jdbc.minIdle=10
  57. # The maximum number of milliseconds that the pool will wait (when there
  58. # are no available connections) for a connection to be returned before
  59. # throwing an exception, or <= 0 to wait indefinitely.
  60. #sonar.jdbc.maxWait=8000
  61. #--------------------------------------------------------------------------------------------------
  62. # WEB SERVER
  63. # Web server is executed in a dedicated Java process. By default heap size is @webDefaultHeapSize@.
  64. # Use the following property to customize JVM options.
  65. # Recommendations:
  66. #
  67. # The HotSpot Server VM is recommended. The property -server should be added if server mode
  68. # is not enabled by default on your environment:
  69. # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html
  70. #
  71. # Startup can be long if entropy source is short of entropy. Adding
  72. # -Djava.security.egd=file:/dev/./urandom is an option to resolve the problem.
  73. # See https://wiki.apache.org/tomcat/HowTo/FasterStartUp#Entropy_Source
  74. #
  75. #sonar.web.javaOpts=@webJavaOpts@
  76. # Same as previous property, but allows to not repeat all other settings like -Xmx
  77. #sonar.web.javaAdditionalOpts=
  78. # Binding IP address. For servers with more than one IP address, this property specifies which
  79. # address will be used for listening on the specified ports.
  80. # By default, ports will be used on all IP addresses associated with the server.
  81. #sonar.web.host=0.0.0.0
  82. # Web context. When set, it must start with forward slash (for example /sonarqube).
  83. # Changing this value and restarting the server can have unexpected consequences for logged in users,
  84. # as they may end up with multiple conflicting browser cookies. If your users experience odd
  85. # behaviors after you changed this value and restarted the server, ask them to clear their browser's
  86. # cookies and log in again.
  87. # The default value is root context (empty value).
  88. #sonar.web.context=
  89. # TCP port for incoming HTTP connections. Default value is 9000.
  90. #sonar.web.port=9000
  91. # The maximum number of connections that the server will accept and process at any given time.
  92. # When this number has been reached, the server will not accept any more connections until
  93. # the number of connections falls below this value. The operating system may still accept connections
  94. # based on the sonar.web.connections.acceptCount property. The default value is 50.
  95. #sonar.web.http.maxThreads=50
  96. # The minimum number of threads always kept running. The default value is 5.
  97. #sonar.web.http.minThreads=5
  98. # The maximum queue length for incoming connection requests when all possible request processing
  99. # threads are in use. Any requests received when the queue is full will be refused.
  100. # The default value is 25.
  101. #sonar.web.http.acceptCount=25
  102. # The number of milliseconds this Connector will wait for another HTTP request before closing the
  103. # connection. The default value is to use the value that has been set for the connectionTimeout
  104. # attribute. Use a value of -1 to indicate no (i.e. infinite) timeout.
  105. # The default value is 60000 (ms).
  106. #sonar.web.http.keepAliveTimeout=60000
  107. # By default users are logged out and sessions closed when server is restarted.
  108. # If you prefer keeping user sessions open, a secret should be defined. Value is
  109. # HS256 key encoded with base64. It must be unique for each installation of SonarQube.
  110. # Example of command-line:
  111. # echo -n "type_what_you_want" | openssl dgst -sha256 -hmac "key" -binary | base64
  112. #sonar.auth.jwtBase64Hs256Secret=
  113. # The inactivity timeout duration of user sessions, in minutes. After the configured
  114. # period of time, the user is logged out.
  115. # The default value is set to 3 days (4320 minutes).
  116. # It must be set between 6 minutes and 3 months (129600 minutes).
  117. # Value must be strictly positive.
  118. #sonar.web.sessionTimeoutInMinutes=4320
  119. # A passcode can be defined to access some web services from monitoring
  120. # tools without having to use the credentials of a system administrator.
  121. # Check the Web API documentation to know which web services are supporting this authentication mode.
  122. # The passcode should be provided in HTTP requests with the header "X-Sonar-Passcode".
  123. # By default feature is disabled.
  124. #sonar.web.systemPasscode=
  125. #--------------------------------------------------------------------------------------------------
  126. # SSO AUTHENTICATION
  127. # Enable authentication using HTTP headers
  128. #sonar.web.sso.enable=false
  129. # Name of the header to get the user login.
  130. # Only alphanumeric, '.' and '@' characters are allowed
  131. #sonar.web.sso.loginHeader=X-Forwarded-Login
  132. # Name of the header to get the user name
  133. #sonar.web.sso.nameHeader=X-Forwarded-Name
  134. # Name of the header to get the user email (optional)
  135. #sonar.web.sso.emailHeader=X-Forwarded-Email
  136. # Name of the header to get the list of user groups, separated by comma (optional).
  137. # If the sonar.sso.groupsHeader is set, the user will belong to those groups if groups exist in SonarQube.
  138. # If none of the provided groups exists in SonarQube, the user will only belong to the default group.
  139. # Note that the default group will always be set.
  140. #sonar.web.sso.groupsHeader=X-Forwarded-Groups
  141. # Interval used to know when to refresh name, email and groups.
  142. # During this interval, if for instance the name of the user is changed in the header, it will only be updated after X minutes.
  143. #sonar.web.sso.refreshIntervalInMinutes=5
  144. #--------------------------------------------------------------------------------------------------
  145. # LDAP CONFIGURATION
  146. # Enable the LDAP feature
  147. # sonar.security.realm=LDAP
  148. # Set to true when connecting to a LDAP server using a case-insensitive setup.
  149. # sonar.authenticator.downcase=true
  150. # URL of the LDAP server. Note that if you are using ldaps, then you should install the server certificate into the Java truststore.
  151. # ldap.url=ldap://localhost:10389
  152. # Bind DN is the username of an LDAP user to connect (or bind) with. Leave this blank for anonymous access to the LDAP directory (optional)
  153. # ldap.bindDn=cn=sonar,ou=users,o=mycompany
  154. # Bind Password is the password of the user to connect with. Leave this blank for anonymous access to the LDAP directory (optional)
  155. # ldap.bindPassword=secret
  156. # Possible values: simple | CRAM-MD5 | DIGEST-MD5 | GSSAPI See http://java.sun.com/products/jndi/tutorial/ldap/security/auth.html (default: simple)
  157. # ldap.authentication=simple
  158. # See :
  159. # * http://java.sun.com/products/jndi/tutorial/ldap/security/digest.html
  160. # * http://java.sun.com/products/jndi/tutorial/ldap/security/crammd5.html
  161. # (optional)
  162. # ldap.realm=example.org
  163. # Context factory class (optional)
  164. # ldap.contextFactoryClass=com.sun.jndi.ldap.LdapCtxFactory
  165. # Enable usage of StartTLS (default : false)
  166. # ldap.StartTLS=true
  167. # Follow or not referrals. See http://docs.oracle.com/javase/jndi/tutorial/ldap/referral/jndi.html (default: true)
  168. # ldap.followReferrals=false
  169. # USER MAPPING
  170. # Distinguished Name (DN) of the root node in LDAP from which to search for users (mandatory)
  171. # ldap.user.baseDn=cn=users,dc=example,dc=org
  172. # LDAP user request. (default: (&(objectClass=inetOrgPerson)(uid={login})) )
  173. # ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
  174. # Attribute in LDAP defining the user’s real name. (default: cn)
  175. # ldap.user.realNameAttribute=name
  176. # Attribute in LDAP defining the user’s email. (default: mail)
  177. # ldap.user.emailAttribute=email
  178. # GROUP MAPPING
  179. # Distinguished Name (DN) of the root node in LDAP from which to search for groups. (optional, default: empty)
  180. # ldap.group.baseDn=cn=groups,dc=example,dc=org
  181. # LDAP group request (default: (&(objectClass=groupOfUniqueNames)(uniqueMember={dn})) )
  182. # ldap.group.request=(&(objectClass=group)(member={dn}))
  183. # Property used to specifiy the attribute to be used for returning the list of user groups in the compatibility mode. (default: cn)
  184. # ldap.group.idAttribute=sAMAccountName
  185. #--------------------------------------------------------------------------------------------------
  186. # COMPUTE ENGINE
  187. # The Compute Engine is responsible for processing background tasks.
  188. # Compute Engine is executed in a dedicated Java process. Default heap size is @ceDefaultHeapSize@.
  189. # Use the following property to customize JVM options.
  190. # Recommendations:
  191. #
  192. # The HotSpot Server VM is recommended. The property -server should be added if server mode
  193. # is not enabled by default on your environment:
  194. # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html
  195. #
  196. #sonar.ce.javaOpts=@ceJavaOpts@
  197. # Same as previous property, but allows to not repeat all other settings like -Xmx
  198. #sonar.ce.javaAdditionalOpts=
  199. #--------------------------------------------------------------------------------------------------
  200. # ELASTICSEARCH
  201. # Elasticsearch is used to facilitate fast and accurate information retrieval.
  202. # It is executed in a dedicated Java process. Default maximum heap size is @searchDefaultHeapSize@.
  203. # It is recommended to also set MaxDirectMemorySize (-XX:MaxDirectMemorySize) and set it to half the maximum heap size.
  204. #
  205. # --------------------------------------------------
  206. # Word of caution for Linux users on 64bits systems
  207. # --------------------------------------------------
  208. # Please ensure Virtual Memory on your system is correctly configured for Elasticsearch to run properly
  209. # (see https://www.elastic.co/guide/en/elasticsearch/reference/5.5/vm-max-map-count.html for details).
  210. #
  211. # When SonarQube runs standalone, a warning such as the following may appear in logs/es.log:
  212. # "max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]"
  213. # When SonarQube runs as a cluster, however, Elasticsearch will refuse to start.
  214. #
  215. # JVM options of Elasticsearch process
  216. #sonar.search.javaOpts=@searchJavaOpts@
  217. # Same as previous property, but allows to not repeat all other settings like -Xmx
  218. #sonar.search.javaAdditionalOpts=
  219. # Elasticsearch port for incoming HTTP connections. Default is 9001. Use 0 to get a free port.
  220. # As a security precaution, should be blocked by a firewall and not exposed to the Internet.
  221. #sonar.search.port=9001
  222. # Elasticsearch TCP transport port that is bound to loopback address. When nothing is set, a random port will be chosen.
  223. # As a security precaution, your OS configuration should not expose this port for external access.
  224. #sonar.es.port=
  225. # Elasticsearch host. The search server will bind this address and the search client will connect to it.
  226. # Default is loopback address.
  227. # As a security precaution, should NOT be set to a publicly available address.
  228. #sonar.search.host=
  229. #--------------------------------------------------------------------------------------------------
  230. # UPDATE CENTER
  231. # Update Center requires an internet connection to request https://downloads.sonarsource.com/?prefix=sonarqube/update
  232. # It is enabled by default.
  233. #sonar.updatecenter.activate=true
  234. # HTTP proxy (default none)
  235. #http.proxyHost=
  236. #http.proxyPort=
  237. # HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort)
  238. #https.proxyHost=
  239. #https.proxyPort=
  240. # NT domain name if NTLM proxy is used
  241. #http.auth.ntlm.domain=
  242. # SOCKS proxy (default none)
  243. #socksProxyHost=
  244. #socksProxyPort=
  245. # Proxy authentication (used for HTTP, HTTPS and SOCKS proxies)
  246. #http.proxyUser=
  247. #http.proxyPassword=
  248. # Proxy exceptions: list of hosts that can be accessed without going through the proxy
  249. # separated by the '|' character, wildcard character '*' can be used for pattern matching
  250. # used for HTTP and HTTPS (default none)
  251. # (note: localhost and its literal notations (127.0.0.1, ...) are always excluded)
  252. #http.nonProxyHosts=
  253. #--------------------------------------------------------------------------------------------------
  254. # LOGGING
  255. # SonarQube produces logs in files located in the same directory (see property sonar.path.logs below),
  256. # one per process:
  257. # Main process (aka. App) logs in sonar.log
  258. # Web Server (aka. Web) logs in web.log
  259. # Compute Engine (aka. CE) logs in ce.log
  260. # Elasticsearch (aka. ES) logs in es.log
  261. # and two other log files:
  262. # Access logs
  263. # Deprecation logs
  264. # Regarding logs for processes:
  265. # Depending on the startup, all 4 files follow the same rolling policy (see sonar.log.rollingPolicy and sonar.log.maxFiles) but it applies
  266. # individually (eg. if sonar.log.maxFiles=4, there can be at most 4 of each files, ie. 16 files in total).
  267. #
  268. # All 4 files have logs in the same format:
  269. # 1 2 3 4 5 6
  270. # |-----------------| |---| |-|--------------------||------------------------------| |------------------------------------------------------------------------------------------------------------------------------|
  271. # 2016.11.16 16:47:00 INFO ce[AVht0dNXFcyiYejytc3m][o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=org.sonarqube:example-java-maven | type=REPORT | id=AVht0dNXFcyiYejytc3m | submitter=admin | time=1699ms
  272. #
  273. # 1: timestamp. Format is YYYY.MM.DD HH:MM:SS
  274. # YYYY: year on 4 digits
  275. # MM: month on 2 digits
  276. # DD: day on 2 digits
  277. # HH: hour of day on 2 digits in 24 hours format
  278. # MM: minutes on 2 digits
  279. # SS: seconds on 2 digits
  280. # 2: log level.
  281. # Possible values (in order of descending criticality): ERROR, WARN, INFO, DEBUG and TRACE
  282. # 3: process identifier. Possible values: app (main), web (Web Server), ce (Compute Engine) and es (Elasticsearch)
  283. # 4: SQ thread identifier. Can be empty.
  284. # In the Web Server, if present, it will be the HTTP request ID.
  285. # In the Compute Engine, if present, it will be the task ID.
  286. # 5: logger name. Usually a class canonical name.
  287. # Package names are truncated to keep the whole field to 20 characters max
  288. # 6: log payload. Content of this field does not follow any specific format, can vary in length and include line returns.
  289. # Some logs, however, will follow the convention to provide data in payload in the format " | key=value"
  290. # Especially, log of profiled pieces of code will end with " | time=XXXXms".
  291. # Global level of logs (applies to all 4 processes).
  292. # Supported values are INFO (default), DEBUG and TRACE
  293. #sonar.log.level=INFO
  294. # Level of logs of each process can be controlled individually with their respective properties.
  295. # When specified, they overwrite the level defined at global level.
  296. # Supported values are INFO, DEBUG and TRACE
  297. #sonar.log.level.app=INFO
  298. #sonar.log.level.web=INFO
  299. #sonar.log.level.ce=INFO
  300. #sonar.log.level.es=INFO
  301. # Path to log files. Can be absolute or relative to installation directory.
  302. # Default is <installation home>/logs
  303. #sonar.path.logs=logs
  304. # Rolling policy of log files
  305. # - based on time if value starts with "time:", for example by day ("time:yyyy-MM-dd")
  306. # or by month ("time:yyyy-MM")
  307. # - based on size if value starts with "size:", for example "size:10MB"
  308. # - disabled if value is "none". That needs logs to be managed by an external system like logrotate.
  309. #sonar.log.rollingPolicy=time:yyyy-MM-dd
  310. # Maximum number of files to keep if a rolling policy is enabled.
  311. # - maximum value is 20 on size rolling policy
  312. # - unlimited on time rolling policy. Set to zero to disable old file purging.
  313. #sonar.log.maxFiles=7
  314. # Regarding the Access logs:
  315. # Access log is the list of all the HTTP requests received by server. If enabled, it is stored
  316. # in the file {sonar.path.logs}/access.log. This file follows the same rolling policy as other log file
  317. # (see sonar.log.rollingPolicy and sonar.log.maxFiles).
  318. #sonar.web.accessLogs.enable=true
  319. # Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Possible values are:
  320. # - "common" is the Common Log Format, shortcut to: %h %l %u %user %date "%r" %s %b
  321. # - "combined" is another format widely recognized, shortcut to: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}"
  322. # - else a custom pattern. See http://logback.qos.ch/manual/layouts.html#AccessPatternLayout.
  323. # The login of authenticated user is not implemented with "%u" but with "%reqAttribute{LOGIN}" (since version 6.1).
  324. # The value displayed for anonymous users is "-".
  325. # The SonarQube's HTTP request ID can be added to the pattern with "%reqAttribute{ID}" (since version 6.2).
  326. # If SonarQube is behind a reverse proxy, then the following value allows to display the correct remote IP address:
  327. #sonar.web.accessLogs.pattern=%i{X-Forwarded-For} %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"
  328. # Default value (which was "combined" before version 6.2) is equivalent to "combined + SQ HTTP request ID":
  329. #sonar.web.accessLogs.pattern=%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"
  330. # Regarding the Deprecation logs:
  331. # Deprecation log is the list of all calls to deprecated Web API.
  332. # It is stored in the file {sonar.path.logs}/deprecation.log. This file follows the same rolling policy as other log file
  333. # (see sonar.log.rollingPolicy and sonar.log.maxFiles).
  334. # Format of deprecation log.
  335. # See https://docs.sonarsource.com/sonarqube/latest/instance-administration/server-logs-and-system-info/
  336. # The login of authenticated user is disabled by default.
  337. # sonar.deprecationLogs.loginEnabled=false
  338. #--------------------------------------------------------------------------------------------------
  339. # OTHERS
  340. # Delay in seconds between processing of notification queue. Default is 60 seconds.
  341. #sonar.notifications.delay=60
  342. # Paths to persistent data files (embedded database and search index) and temporary files.
  343. # Can be absolute or relative to installation directory.
  344. # Defaults are respectively <installation home>/data and <installation home>/temp
  345. #sonar.path.data=data
  346. #sonar.path.temp=temp
  347. # Telemetry - Share anonymous SonarQube statistics
  348. # By sharing anonymous SonarQube statistics, you help us understand how SonarQube is used so we can improve the product to work even better for you.
  349. # We don't collect source code or IP addresses. And we don't share the data with anyone else.
  350. #sonar.telemetry.enable=true