aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/reference.conf
blob: 01dba3c325bf24a0cd0e57583300984e23cb163c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
######################################################################
# Default settings for driver core. Any settings defined by users of #
# this library will take precedence. See the documentation of the    #
# Typesafe Config Library (https://github.com/lightbend/config) for  #
# more information.                                                  #
######################################################################

# This scope is for general settings related to the execution of a
# specific service.
application {
  baseUrl: "localhost:8080"
  environment: "local_testing"

  cors.allowedOrigins: [
    "localhost",
    "driver.xyz",
    "driver.network",
    "cndriver.xyz"
  ]
}

services.dev-overrides = [
  // {"service1": "http://localhost:8080"},
  // {"service2": "https://stable.sand.driver.network"}
]

# Settings about the auto-generated REST API documentation.
swagger {

  # Version of the Swagger specification
  # (https://swagger.io/specification/). Note that changing this will
  # likely require changing the way Swagger is integrated into
  # driver-core, involving upgrading libraries and web resources.
  apiVersion = "2.0"

  basePath = "/"

  docsPath = "api-docs"

  # Description and usage of the specific API provided by the service
  # using this library.
  apiInfo {

    # Name of the service
    title = "NEW SERVICE (change config swagger.apiInfo)"

    # Description of the service
    description = "Please implement swagger info in your new service"

    # Contact for support about this service.
    contact {
      name = "Driver Inc."
      url = "https://driver.xyz"
      email = "info@driver.xyz"
    }

    termsOfServiceUrl = "TOC Url"
    license = "Apache V2"
    licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0"
  }
}

# Kamon provides monitoring capabilities
kamon {
  system-metrics {
   # sigar reports host-specific metrics. Kubernetes takes care of
   # that for Driver services.
   host.enabled = false

   # JVM-related metrics
   jmx.enabled = true
  }

  statsd {
    hostname = localhost
    port = 8125
    simple-metric-key-generator {
      include-hostname = false
    }
  }
}