summaryrefslogtreecommitdiffstats
path: root/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb
blob: d97abdefd2a7e2a20dc7f997bb7ce514ae349a68 (plain)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Needed for logging purposes. To be populated by DevOps - currently dummy
feFqdn: <%= @fe_host_ip %>

# catalog backend hostname
beHost: <%= @be_host_ip %>

# catalog backend http port
beHttpPort: <%= @catalog_port %>

# catalog backend http context
beContext: /sdc2/rest/v1/catalog/upload/resources

# catalog backend protocol
<% if node[:disableHttp] -%>
beProtocol: https
<% else %>
beProtocol: http
<% end -%>

# catalog backend ssl port
beSslPort: <%= @ssl_port %>

# threadpool size for handling requests
threadpoolSize: 50

# request processing timeout (seconds)
requestTimeout: 10

# catalog ms (the host-port values need to be changed once it is deployed)
catalogFacadeMs:
  protocol: http
  host: <%= node['FACADE_VIP'] %>
  port: <%= @facade_port %>
  healthCheckUri: "/healthCheck"
  path: "/uicache"

# Determines the health check read timeout when invoking health check towards the LB (or BE whatever is configured):
healthCheckSocketTimeoutInMs: 5000

healthCheckIntervalInSeconds: 5

onboarding:
    hostFe: <%= @fe_host_ip %>
    <% if node[:disableHttp] -%>
    protocolFe: https
    portFe: <%= node['FE'][:https_port] %>
    <% else %>
    protocolFe: http
    portFe: <%= node['FE'][:http_port] %>
    <% end -%>
    healthCheckUriFe: "/onboarding/v1.0/healthcheck"
    hostBe: <%= node['ONBOARDING_BE_VIP'] %>
    <% if node[:disableHttp] -%>
    protocolBe: https
    portBe: <%= node['ONBOARDING_BE'][:https_port] %>
    <% else %>
    protocolBe: http
    portBe: <%= node['ONBOARDING_BE'][:http_port] %>
    <% end -%>

dcae:
    host: <%= @dcae_fe_vip %>
    <% if node[:disableHttp] -%>
    protocol: https
    port: <%= node['DCAE']['FE'][:https_port] %>
    <% else %>
    protocol: http
    port: <%= node['DCAE']['FE'][:http_port] %>
    <% end -%>
    healthCheckUri: "/dcaed/healthCheck"

identificationHeaderFields: 
   -
        - &HTTP_IV_USER HTTP_IV_USER
        - &iv-user iv-user
   -
        - &USER_ID USER_ID
        - &user-id user-id
   -
        - &HTTP_CSP_ATTUID HTTP_CSP_ATTUID
        - &csp-attuid csp-attuid

optionalHeaderFields:
   -
        - &HTTP_CSP_FIRSTNAME HTTP_CSP_FIRSTNAME
        - &csp-firstname csp-firstname
   -
        - &HTTP_CSP_LASTNAME HTTP_CSP_LASTNAME
        - &csp-lastname csp-lastname
   -
        - &HTTP_IV_REMOTE_ADDRESS HTTP_IV_REMOTE_ADDRESS
        - &iv-remote-address iv-remote-address
   -
        - &HTTP_CSP_EMAIL HTTP_CSP_EMAIL
        - &csp-email csp-email

version: 1.0
released: 2012-11-30

# access restriction
authCookie:
  cookieName: "AuthenticationCookie"
  path: /
  domain: ""
  securityKey: <%= node['access_restriction_key'] %>


# Connection parameters
connection:
    url: jdbc:mysql://localhost:3306/db
    poolSize: 17

# Protocols
protocols:
   - http
   - https


systemMonitoring:
    enabled: false
    isProxy: true
    probeIntervalInSeconds: 15


healthStatusExclude:
   - DE
   - DMAAP
   - DCAE
   - DMAAP_PRODUCER
   - PORTAL