custom.yaml 2.95 KB
Newer Older
oleg.pahhomov's avatar
oleg.pahhomov committed
1
2
3
4
5
6
server:
  servlet:
    contextPath: /api
  port: 5080

spring:
7
  profiles:
8
9
    active: test
  #    no-cache,
10
11
  jackson:
    default-property-inclusion: non_null
oleg.pahhomov's avatar
oleg.pahhomov committed
12
  flyway:
13
    locations: classpath:db/migration, classpath:db/livedata, classpath:db/testdata, classpath:db/testusers
oleg.pahhomov's avatar
oleg.pahhomov committed
14
15
16
17
18
19
20
21
22
23
24
25
    out-of-order: true
  jpa:
    database-platform: org.hibernate.dialect.PostgreSQLDialect
    properties:
      hibernate:
        temp:
          use_jdbc_metadata_defaults: false
        jdbc:
          time_zone: UTC
  datasource:
    url: jdbc:postgresql://localhost:5433/dashboardtest?currentSchema=dashboardtest
    username: dashboardtest
26
    password: dashboardtest
27
  cache:
oleg.pahhomov's avatar
oleg.pahhomov committed
28
    cache-names:
29
30
31
32
33
34
      - DashboardServiceCache_findById
      - DashboardServiceCache_findAllByLevel
      - DashboardServiceCache_findAllFromByTo
      - DashboardServiceCache_findAllToByFrom
      - DiagramServiceCache_findDiagram
      - DiagramServiceCache_findDiagramGraph
35
      #      - DomainService_loadDomainsAndWidgets
36
      - DomainServiceCache_findAllFromByTo
37
38
39
40
41
      - ElementServiceCache_findById
      - ElementServiceCache_findAllByLevel
      - ElementServiceCache_findAllByCode
      - ElementServiceCache_findAllByClfCode
      - ElementServiceCache_findAllToByFrom
42
43
      - ElementServiceCache_findAllDashboardRegions
      - FilterService_getDbFilters
44
      #      - GraphFiltering_filterGraph
45
      - GraphTypeServiceCache_findAllByWidget
46
      - WidgetServiceCache_findById
47
      - WidgetDomainService_getDomains
48
    caffeine:
oleg.pahhomov's avatar
oleg.pahhomov committed
49
      spec: expireAfterWrite=5m
50
51

logging:
oleg.pahhomov's avatar
oleg.pahhomov committed
52
  path: ./logs
53
54
  level:
    root: INFO
55
56
57
58
#  level:
#    org:
#      hibernate:
#        SQL: debug
oleg.pahhomov's avatar
oleg.pahhomov committed
59

60
61
62
63
management:
  endpoints:
    web:
      exposure:
64
        include: "info"
65

oleg.pahhomov's avatar
oleg.pahhomov committed
66
app:
67
68
  session:
    time: 120 #mins
oleg.pahhomov's avatar
oleg.pahhomov committed
69
70
71
72
73
74
75
76
77
78
  oauth:
    clientId: stat-dashboard-dev
    simpleScope: openid
    issuer: https://tara-test.ria.ee
    redirectUri: http://185.174.163.228:5080/api/login/tara/callback
    cancelUri: http://185.174.163.228:5080/api/login/tara/cancel
    TARATokenEndpoint: https://tara-test.ria.ee/oidc/token
    TARAAuthorizationEndpoint: https://tara-test.ria.ee/oidc/authorize
    TARAKeyEndpoint: https://tara-test.ria.ee/oidc/jwks
    clientSecret: wnu1mRBSzw9ImdsOR25EFoRO
79
80
81
    localSuccessUrl: https://demo.juhtimislauad.stat.ee/home
    localFailureUrl: https://demo.juhtimislauad.stat.ee
    localCancelUrl: https://demo.juhtimislauad.stat.ee
oleg.pahhomov's avatar
oleg.pahhomov committed
82
83
  element:
    wholeCode: Whole
oleg.pahhomov's avatar
oleg.pahhomov committed
84
85
  stat:
    urlLength: 375
86
    linkMetaUrl: http://andmebaas.stat.ee/OECDStat_Metadata/ShowMetadata.ashx?Dataset={0}&Lang={1}&isembededmetadata=true
87
    dimensionMetaUrl: http://andmebaas.stat.ee/restsdmx/sdmx.ashx/GetDataStructure/{0}
oleg.pahhomov's avatar
oleg.pahhomov committed
88
  cron:
89
    statDbUpdate: 0 0 * * * *
90
    statDbEnabled: true
oleg.pahhomov's avatar
oleg.pahhomov committed
91
  excel:
92
    location: ./excel/data/
93
    widgetLocation:   ./widgets_working
94
    #      - ./excel/testwidget
oleg.pahhomov's avatar
oleg.pahhomov committed
95
96
97
    type: Andmetüüp
    realLevels: tegelikud tasemed
    separator: \|\|
98
  sdmx:
99
100
    timeEt: Aeg
    timeEn: Time
101
    referenceEt: Vaatlusperiood
102
    referenceEn: Reference period