Guest User

Untitled

a guest
Mar 1st, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.63 KB | None | 0 0
  1. # Property values can:
  2. # - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_JDBC_URL}
  3. # - be encrypted. See https://redirect.sonarsource.com/doc/settings-encryption.html
  4.  
  5. #--------------------------------------------------------------------------------------------------
  6. # DATABASE
  7. #
  8. # IMPORTANT:
  9. # - The embedded H2 database is used by default. It is recommended for tests but not for
  10. # production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsoft SQLServer.
  11. # - Changes to database connection URL (sonar.jdbc.url) can affect SonarSource licensed products.
  12.  
  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.  
  19. #----- Embedded Database (default)
  20. # H2 embedded database server listening port, defaults to 9092
  21. #sonar.embeddedDatabase.port=9092
  22.  
  23. #----- MySQL 5.6 or greater
  24. # Only InnoDB storage engine is supported (not myISAM).
  25. # Only the bundled driver is supported. It can not be changed.
  26. #sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
  27.  
  28. sonar.jdbc.username=sonar
  29. sonar.jdbc.password=sonar
  30. sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
  31.  
  32. #----- Oracle 11g/12c
  33. # The Oracle JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/.
  34. # Only the thin client is supported, and only the versions 11.2.x or 12.2.x must be used. See
  35. # https://jira.sonarsource.com/browse/SONAR-9758 for more details.
  36. # If you need to set the schema, please refer to http://jira.sonarsource.com/browse/SONAR-5000
  37. #sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/XE
  38.  
  39.  
  40. #----- PostgreSQL 8.x or greater
  41. # If you don't use the schema named "public", please refer to http://jira.sonarsource.com/browse/SONAR-5000
  42. #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
  43.  
  44.  
  45. #----- Microsoft SQLServer 2014/2016 and SQL Azure
  46. # A database named sonar must exist and its collation must be case-sensitive (CS) and accent-sensitive (AS)
  47. # Use the following connection string if you want to use integrated security with Microsoft Sql Server
  48. # Do not set sonar.jdbc.username or sonar.jdbc.password property if you are using Integrated Security
  49. # For Integrated Security to work, you have to download the Microsoft SQL JDBC driver package from
  50. # https://www.microsoft.com/en-us/download/details.aspx?id=55539
  51. # and copy sqljdbc_auth.dll to your path. You have to copy the 32 bit or 64 bit version of the dll
  52. # depending upon the architecture of your server machine.
  53. #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true
  54.  
  55. # Use the following connection string if you want to use SQL Auth while connecting to MS Sql Server.
  56. # Set the sonar.jdbc.username and sonar.jdbc.password appropriately.
  57. #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar
  58.  
  59.  
  60. #----- Connection pool settings
  61. # The maximum number of active connections that can be allocated
  62. # at the same time, or negative for no limit.
  63. # The recommended value is 1.2 * max sizes of HTTP pools. For example if HTTP ports are
  64. # enabled with default sizes (50, see property sonar.web.http.maxThreads)
  65. # then sonar.jdbc.maxActive should be 1.2 * 50 = 60.
  66. #sonar.jdbc.maxActive=60
  67.  
  68. # The maximum number of connections that can remain idle in the
  69. # pool, without extra ones being released, or negative for no limit.
  70. #sonar.jdbc.maxIdle=5
  71.  
  72. # The minimum number of connections that can remain idle in the pool,
  73. # without extra ones being created, or zero to create none.
  74. #sonar.jdbc.minIdle=2
  75.  
  76. # The maximum number of milliseconds that the pool will wait (when there
  77. # are no available connections) for a connection to be returned before
  78. # throwing an exception, or <= 0 to wait indefinitely.
  79. #sonar.jdbc.maxWait=5000
  80.  
  81. #sonar.jdbc.minEvictableIdleTimeMillis=600000
  82. #sonar.jdbc.timeBetweenEvictionRunsMillis=30000
  83.  
  84.  
  85.  
  86. #--------------------------------------------------------------------------------------------------
  87. # WEB SERVER
  88. # Web server is executed in a dedicated Java process. By default heap size is 512Mb.
  89. # Use the following property to customize JVM options.
  90. # Recommendations:
  91. #
  92. # The HotSpot Server VM is recommended. The property -server should be added if server mode
  93. # is not enabled by default on your environment:
  94. # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html
  95. #
  96. # Startup can be long if entropy source is short of entropy. Adding
  97. # -Djava.security.egd=file:/dev/./urandom is an option to resolve the problem.
  98. # See https://wiki.apache.org/tomcat/HowTo/FasterStartUp#Entropy_Source
  99. #
  100. #sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError
  101.  
  102. # Same as previous property, but allows to not repeat all other settings like -Xmx
  103. #sonar.web.javaAdditionalOpts=
  104.  
  105. # Binding IP address. For servers with more than one IP address, this property specifies which
  106. # address will be used for listening on the specified ports.
  107. # By default, ports will be used on all IP addresses associated with the server.
  108. #sonar.web.host=0.0.0.0
  109.  
  110. # Web context. When set, it must start with forward slash (for example /sonarqube).
  111. # The default value is root context (empty value).
  112. #sonar.web.context=
  113. # TCP port for incoming HTTP connections. Default value is 9000.
  114. #sonar.web.port=9000
  115.  
  116. sonar.web.host=127.0.0.1
  117. sonar.web.context=/sonar
  118. sonar.web.port=9000
  119.  
  120.  
  121. # The maximum number of connections that the server will accept and process at any given time.
  122. # When this number has been reached, the server will not accept any more connections until
  123. # the number of connections falls below this value. The operating system may still accept connections
  124. # based on the sonar.web.connections.acceptCount property. The default value is 50.
  125. #sonar.web.http.maxThreads=50
  126.  
  127. # The minimum number of threads always kept running. The default value is 5.
  128. #sonar.web.http.minThreads=5
  129.  
  130. # The maximum queue length for incoming connection requests when all possible request processing
  131. # threads are in use. Any requests received when the queue is full will be refused.
  132. # The default value is 25.
  133. #sonar.web.http.acceptCount=25
  134.  
  135. # By default users are logged out and sessions closed when server is restarted.
  136. # If you prefer keeping user sessions open, a secret should be defined. Value is
  137. # HS256 key encoded with base64. It must be unique for each installation of SonarQube.
  138. # Example of command-line:
  139. # echo -n "type_what_you_want" | openssl dgst -sha256 -hmac "key" -binary | base64
  140. #sonar.auth.jwtBase64Hs256Secret=
  141.  
  142. # The inactivity timeout duration of user sessions, in minutes. After the configured
  143. # period of time, the user is logged out.
  144. # The default value is set to 3 days (4320 minutes)
  145. # and cannot be greater than 3 months. Value must be strictly positive.
  146. #sonar.web.sessionTimeoutInMinutes=4320
  147.  
  148. # A passcode can be defined to access some web services from monitoring
  149. # tools without having to use the credentials of a system administrator.
  150. # Check the Web API documentation to know which web services are supporting this authentication mode.
  151. # The passcode should be provided in HTTP requests with the header "X-Sonar-Passcode".
  152. # By default feature is disabled.
  153. #sonar.web.systemPasscode=
  154.  
  155.  
  156. #--------------------------------------------------------------------------------------------------
  157. # SSO AUTHENTICATION
  158.  
  159. # Enable authentication using HTTP headers
  160. #sonar.web.sso.enable=false
  161.  
  162. # Name of the header to get the user login.
  163. # Only alphanumeric, '.' and '@' characters are allowed
  164. #sonar.web.sso.loginHeader=X-Forwarded-Login
  165.  
  166. # Name of the header to get the user name
  167. #sonar.web.sso.nameHeader=X-Forwarded-Name
  168.  
  169. # Name of the header to get the user email (optional)
  170. #sonar.web.sso.emailHeader=X-Forwarded-Email
  171.  
  172. # Name of the header to get the list of user groups, separated by comma (optional).
  173. # If the sonar.sso.groupsHeader is set, the user will belong to those groups if groups exist in SonarQube.
  174. # If none of the provided groups exists in SonarQube, the user will only belong to the default group.
  175. # Note that the default group will always be set.
  176. #sonar.web.sso.groupsHeader=X-Forwarded-Groups
  177.  
  178. # Interval used to know when to refresh name, email and groups.
  179. # During this interval, if for instance the name of the user is changed in the header, it will only be updated after X minutes.
  180. #sonar.web.sso.refreshIntervalInMinutes=5
  181.  
  182.  
  183. #--------------------------------------------------------------------------------------------------
  184. # COMPUTE ENGINE
  185. # The Compute Engine is responsible for processing background tasks.
  186. # Compute Engine is executed in a dedicated Java process. Default heap size is 512Mb.
  187. # Use the following property to customize JVM options.
  188. # Recommendations:
  189. #
  190. # The HotSpot Server VM is recommended. The property -server should be added if server mode
  191. # is not enabled by default on your environment:
  192. # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html
  193. #
  194. #sonar.ce.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError
  195.  
  196. # Same as previous property, but allows to not repeat all other settings like -Xmx
  197. #sonar.ce.javaAdditionalOpts=
  198.  
  199.  
  200. #--------------------------------------------------------------------------------------------------
  201. # ELASTICSEARCH
  202. # Elasticsearch is used to facilitate fast and accurate information retrieval.
  203. # It is executed in a dedicated Java process. Default heap size is 512Mb.
  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.  
  216. # JVM options of Elasticsearch process
  217. #sonar.search.javaOpts=-Xms512m \
  218. # -Xmx512m \
  219. # -XX:+HeapDumpOnOutOfMemoryError
  220.  
  221. # Same as previous property, but allows to not repeat all other settings like -Xmx
  222. #sonar.search.javaAdditionalOpts=
  223.  
  224. # Elasticsearch port. Default is 9001. Use 0 to get a free port.
  225. # As a security precaution, should be blocked by a firewall and not exposed to the Internet.
  226. #sonar.search.port=9001
  227.  
  228. # Elasticsearch host. The search server will bind this address and the search client will connect to it.
  229. # Default is loopback address.
  230. # As a security precaution, should NOT be set to a publicly available address.
  231. #sonar.search.host=
  232.  
  233.  
  234. #--------------------------------------------------------------------------------------------------
  235. # UPDATE CENTER
  236.  
  237. # Update Center requires an internet connection to request https://update.sonarsource.org
  238. # It is enabled by default.
  239. #sonar.updatecenter.activate=true
  240.  
  241. # HTTP proxy (default none)
  242. #http.proxyHost=
  243. #http.proxyPort=
  244. # HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort)
  245. #https.proxyHost=
  246. #https.proxyPort=
  247.  
  248. # NT domain name if NTLM proxy is used
  249. #http.auth.ntlm.domain=
  250.  
  251. # SOCKS proxy (default none)
  252. #socksProxyHost=
  253. #socksProxyPort=
  254.  
  255. # Proxy authentication (used for HTTP, HTTPS and SOCKS proxies)
  256. #http.proxyUser=
  257. #http.proxyPassword=
  258.  
  259.  
  260. #--------------------------------------------------------------------------------------------------
  261. # LOGGING
  262.  
  263. # SonarQube produces logs in 4 logs files located in the same directory (see property sonar.path.logs below),
  264. # one per process:
  265. # Main process (aka. App) logs in sonar.log
  266. # Web Server (aka. Web) logs in web.log
  267. # Compute Engine (aka. CE) logs in ce.log
  268. # Elasticsearch (aka. ES) logs in es.log
  269. #
  270. # All 4 files follow the same rolling policy (see sonar.log.rollingPolicy and sonar.log.maxFiles) but it applies
  271. # individually (eg. if sonar.log.maxFiles=4, there can be at most 4 of each files, ie. 16 files in total).
  272. #
  273. # All 4 files have logs in the same format:
  274. # 1 2 3 4 5 6
  275. # |-----------------| |---| |-|--------------------||------------------------------| |------------------------------------------------------------------------------------------------------------------------------|
  276. # 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
  277. #
  278. # 1: timestamp. Format is YYYY.MM.DD HH:MM:SS
  279. # YYYY: year on 4 digits
  280. # MM: month on 2 digits
  281. # DD: day on 2 digits
  282. # HH: hour of day on 2 digits in 24 hours format
  283. # MM: minutes on 2 digits
  284. # SS: seconds on 2 digits
  285. # 2: log level.
  286. # Possible values (in order of descending criticality): ERROR, WARN, INFO, DEBUG and TRACE
  287. # 3: process identifier. Possible values: app (main), web (Web Server), ce (Compute Engine) and es (Elasticsearch)
  288. # 4: SQ thread identifier. Can be empty.
  289. # In the Web Server, if present, it will be the HTTP request ID.
  290. # In the Compute Engine, if present, it will be the task ID.
  291. # 5: logger name. Usually a class canonical name.
  292. # Package names are truncated to keep the whole field to 20 characters max
  293. # 6: log payload. Content of this field does not follow any specific format, can vary in length and include line returns.
  294. # Some logs, however, will follow the convention to provide data in payload in the format " | key=value"
  295. # Especially, log of profiled pieces of code will end with " | time=XXXXms".
  296.  
  297. # Global level of logs (applies to all 4 processes).
  298. # Supported values are INFO (default), DEBUG and TRACE
  299. #sonar.log.level=INFO
  300.  
  301. # Level of logs of each process can be controlled individually with their respective properties.
  302. # When specified, they overwrite the level defined at global level.
  303. # Supported values are INFO, DEBUG and TRACE
  304. #sonar.log.level.app=INFO
  305. #sonar.log.level.web=INFO
  306. #sonar.log.level.ce=INFO
  307. #sonar.log.level.es=INFO
  308.  
  309. # Path to log files. Can be absolute or relative to installation directory.
  310. # Default is <installation home>/logs
  311. #sonar.path.logs=logs
  312.  
  313. # Rolling policy of log files
  314. # - based on time if value starts with "time:", for example by day ("time:yyyy-MM-dd")
  315. # or by month ("time:yyyy-MM")
  316. # - based on size if value starts with "size:", for example "size:10MB"
  317. # - disabled if value is "none". That needs logs to be managed by an external system like logrotate.
  318. #sonar.log.rollingPolicy=time:yyyy-MM-dd
  319.  
  320. # Maximum number of files to keep if a rolling policy is enabled.
  321. # - maximum value is 20 on size rolling policy
  322. # - unlimited on time rolling policy. Set to zero to disable old file purging.
  323. #sonar.log.maxFiles=7
  324.  
  325. # Access log is the list of all the HTTP requests received by server. If enabled, it is stored
  326. # in the file {sonar.path.logs}/access.log. This file follows the same rolling policy as other log file
  327. # (see sonar.log.rollingPolicy and sonar.log.maxFiles).
  328. #sonar.web.accessLogs.enable=true
  329.  
  330. # Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Possible values are:
  331. # - "common" is the Common Log Format, shortcut to: %h %l %u %user %date "%r" %s %b
  332. # - "combined" is another format widely recognized, shortcut to: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}"
  333. # - else a custom pattern. See http://logback.qos.ch/manual/layouts.html#AccessPatternLayout.
  334. # The login of authenticated user is not implemented with "%u" but with "%reqAttribute{LOGIN}" (since version 6.1).
  335. # The value displayed for anonymous users is "-".
  336. # The SonarQube's HTTP request ID can be added to the pattern with "%reqAttribute{ID}" (since version 6.2).
  337. # If SonarQube is behind a reverse proxy, then the following value allows to display the correct remote IP address:
  338. #sonar.web.accessLogs.pattern=%i{X-Forwarded-For} %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"
  339. # Default value (which was "combined" before version 6.2) is equivalent to "combined + SQ HTTP request ID":
  340. #sonar.web.accessLogs.pattern=%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"
  341.  
  342.  
  343. #--------------------------------------------------------------------------------------------------
  344. # OTHERS
  345.  
  346. # Delay in seconds between processing of notification queue. Default is 60 seconds.
  347. #sonar.notifications.delay=60
  348.  
  349. # Paths to persistent data files (embedded database and search index) and temporary files.
  350. # Can be absolute or relative to installation directory.
  351. # Defaults are respectively <installation home>/data and <installation home>/temp
  352. #sonar.path.data=data
  353. #sonar.path.temp=temp
  354.  
  355. # Telemetry - Share anonymous SonarQube statistics
  356. # 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.
  357. # We don't collect source code or IP addresses. And we don't share the data with anyone else.
  358. # To see an example of the data shared: login as a global administrator, call the WS api/system/info and check the Statistics field.
  359. #sonar.telemetry.enable=true
  360.  
  361.  
  362. #--------------------------------------------------------------------------------------------------
  363. # DEVELOPMENT - only for developers
  364. # The following properties MUST NOT be used in production environments.
  365.  
  366. # Elasticsearch HTTP connector
  367. #sonar.search.httpPort=-1
Add Comment
Please, Sign In to add comment