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 20KB

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