Commit b68aa8aa8a253edeb7bddf093dca5a25b8aef26c

Authored by Benjamin Renard
1 parent d933877c

Add sonar config file used for AMDA

Showing 1 changed file with 139 additions and 0 deletions   Show diff stats
sonar/sonar.properties 0 → 100644
... ... @@ -0,0 +1,139 @@
  1 +#--------------------------------------------------------
  2 +# This file must contain only ISO 8859-1 characters
  3 +# see http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Properties.html#load(java.io.InputStream)
  4 +#
  5 +# To use an environment variable, use the following syntax : ${env:NAME_OF_ENV_VARIABLE}
  6 +# For example :
  7 +# sonar.jdbc.url: ${env:SONAR_JDBC_URL}
  8 +#
  9 +#
  10 +# See also the file conf/wrapper.conf for JVM advanced settings
  11 +#---------------------------------------------------------
  12 +
  13 +
  14 +#---------------------------------------------------------
  15 +# WEB SETTINGS - STANDALONE MODE ONLY
  16 +# These settings are ignored when the war file is deployed to a JEE server.
  17 +#---------------------------------------------------------
  18 +# Listen host/port and context path (for example / or /sonar). Default values are 0.0.0.0:9000/.
  19 +#sonar.web.host: 0.0.0.0
  20 +#sonar.web.port: 9000
  21 +#sonar.web.context: /
  22 +
  23 +# Log HTTP requests. Deactivated by default.
  24 +#sonar.web.jettyRequestLogs: ../../logs/jetty-yyyy_mm_dd.request.log
  25 +
  26 +#-----------------------------------------------------------------------
  27 +# DATABASE
  28 +#
  29 +# IMPORTANT : the embedded database H2 is used by default.
  30 +# It is recommended for tests only. Please use an external database
  31 +# for production environment (MySQL, Oracle, Postgresql, SQLServer)
  32 +#
  33 +#-----------------------------------------------------------------------
  34 +
  35 +#----- Credentials
  36 +# Permissions to create tables and indexes must be granted to JDBC user.
  37 +# The schema must be created first.
  38 +sonar.jdbc.username: sonar
  39 +sonar.jdbc.password: sonar
  40 +
  41 +#----- Embedded database H2
  42 +# Note : it does not accept connections from remote hosts, so the
  43 +# sonar server and the maven plugin must be executed on the same host.
  44 +
  45 +# Comment the following line to deactivate the default embedded database.
  46 +#sonar.jdbc.url: jdbc:h2:tcp://localhost:9092/sonar
  47 +#sonar.jdbc.driverClassName: org.h2.Driver
  48 +
  49 +# directory containing H2 database files. By default it's the /data directory in the sonar installation.
  50 +#sonar.embeddedDatabase.dataDir:
  51 +# H2 embedded database server listening port, defaults to 9092
  52 +#sonar.embeddedDatabase.port: 9092
  53 +
  54 +
  55 +#----- MySQL 5.x/6.x
  56 +# Comment the embedded database and uncomment the following line to use MySQL
  57 +sonar.jdbc.url: jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
  58 +
  59 +# Optional properties
  60 +#sonar.jdbc.driverClassName: com.mysql.jdbc.Driver
  61 +
  62 +
  63 +#----- Oracle 10g/11g
  64 +# To connect to Oracle database :
  65 +#
  66 +# - It's recommended to use the latest version of the JDBC driver (either ojdbc6.jar for Java 6 or ojdbc5.jar for Java 5).
  67 +# Download it in http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html
  68 +# - Copy the driver to the directory extensions/jdbc-driver/oracle/
  69 +# - Comment the embedded database and uncomment the following line :
  70 +#sonar.jdbc.url: jdbc:oracle:thin:@localhost/XE
  71 +
  72 +# Optional properties
  73 +#sonar.jdbc.driverClassName: oracle.jdbc.OracleDriver
  74 +
  75 +# Uncomment the following property if the Oracle account has permissions to access multiple schemas,
  76 +# for example sonar schemas with different versions. In that case, use the same property during project analysis
  77 +# (-Dsonar.jdbc.schema=<schema>)
  78 +#sonar.jdbc.schema: sonar
  79 +
  80 +
  81 +#----- PostgreSQL 8.x/9.x
  82 +# Comment the embedded database and uncomment the following property to use PostgreSQL
  83 +#sonar.jdbc.url: jdbc:postgresql://localhost/sonar
  84 +
  85 +# Optional properties
  86 +#sonar.jdbc.driverClassName: org.postgresql.Driver
  87 +
  88 +# Uncomment the following property if the PostgreSQL account has permissions to access multiple schemas,
  89 +# for example sonar schemas with different versions. In that case, use the same property during project analysis
  90 +# (-Dsonar.jdbc.schema=<schema>)
  91 +#sonar.jdbc.schema: public
  92 +
  93 +
  94 +#----- Microsoft SQLServer
  95 +# The Jtds open source driver is available in extensions/jdbc-driver/mssql. More details on http://jtds.sourceforge.net
  96 +#sonar.jdbc.url: jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
  97 +
  98 +# Optional properties
  99 +#sonar.jdbc.driverClassName: net.sourceforge.jtds.jdbc.Driver
  100 +
  101 +
  102 +#----- Connection pool settings
  103 +sonar.jdbc.maxActive: 20
  104 +sonar.jdbc.maxIdle: 5
  105 +sonar.jdbc.minIdle: 2
  106 +sonar.jdbc.maxWait: 5000
  107 +sonar.jdbc.minEvictableIdleTimeMillis: 600000
  108 +sonar.jdbc.timeBetweenEvictionRunsMillis: 30000
  109 +
  110 +
  111 +#---------------------------------------------------------
  112 +# UPDATE CENTER
  113 +#---------------------------------------------------------
  114 +
  115 +# The Update Center requires an internet connection to request http://update.sonarsource.org
  116 +# It is activated by default:
  117 +#sonar.updatecenter.activate=true
  118 +
  119 +# HTTP proxy (default none)
  120 +#http.proxyHost=
  121 +#http.proxyPort=
  122 +
  123 +# NT domain name if NTLM proxy is used
  124 +#http.auth.ntlm.domain=
  125 +
  126 +# SOCKS proxy (default none)
  127 +#socksProxyHost=
  128 +#socksProxyPort=
  129 +
  130 +# proxy authentication. The 2 following properties are used for HTTP and SOCKS proxies.
  131 +#http.proxyUser=
  132 +#http.proxyPassword=
  133 +
  134 +#---------------------------------------------------------
  135 +# NOTIFICATIONS
  136 +#---------------------------------------------------------
  137 +
  138 +# Delay (in seconds) between processing of notification queue
  139 +sonar.notifications.delay=60
... ...