application.yml.j2 3.41 KB
Newer Older
1
2
3
4
5
6
7
rng:
  base:
    file: rng/Profil_seda_pastis_mvp.rng
    directory: rng/
json:
  base:
    file: rng/ProfileJson.json
Benaissa BENARBIA's avatar
Benaissa BENARBIA committed
8
  template:
descamps's avatar
descamps committed
9
10
    fileStandalone: rng/AUP_default_PASTIS.json
    fileVitam: rng/AUP_default_VITAM.json
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
pua:
  definitions:
    file: pua_validation/ProfileJson.json

spring:
  cloud:
    consul:
      enabled: true
      host: consul.service.{{ consul_domain }}
      discovery:
        preferIpAddress: true
        tags: {{ consul_tags }}
        instanceId: {{ vitamui_struct.vitamui_component }}-${server.port}-${spring.cloud.client.hostname}
  servlet:
    multipart:
      max-file-size: -1
      max-request-size: -1

logging:
  config: {{ vitamui_folder_conf }}/logback.xml
  level:
    fr.gouv.vitamui.pastis.server: {{ vitamui_struct.log.vitamui_level }}


server:
  port: {{ vitamui_struct.port_service }}
{% if vitamui_struct.secure|lower == "true" %}
  ssl:
    key-store: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
    key-store-password: {{ password_keystore }}
    key-password: {{ password_keystore }}
    trust-store: {{ vitamui_folder_conf }}/truststore_{{ vitamui_certificate_type }}.jks
    trust-store-password: {{ password_truststore }}
    client-auth: need
    enabled-protocols: {{ssl_setting.enabled_protocols}}
    ciphers: {{ssl_setting.ciphers}}
  error:
    path: /error

{% endif %}
  tomcat:
    connection-timeout: {{ vitamui_struct.server_connection_timeout }}
    accesslog:
        enabled: "{{ vitamui_struct.jvm_log|lower }}"
        directory: "{{ vitamui_folder_log }}"

management:
  server:
    port: {{ vitamui_struct.port_admin }}
    ssl:
      enabled: false

pastis-external:
  security-client:
    server-host: {{ vitamui.security_internal.host }}
    server-port: {{ vitamui.security_internal.port_service }}
{% if vitamui.security_internal.secure|lower == "true" %}
    secure: {{ vitamui.security_internal.secure|lower }}
    ssl-configuration:
      keystore:
        key-path: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
        key-password: {{ password_keystore }}
        type: JKS
      truststore:
        key-path: {{ vitamui_folder_conf }}/truststore_{{ vitamui_certificate_type }}.jks
        key-password: {{ password_truststore }}
      hostname-verification: false
{% endif %}
  iam-internal-client:
    server-host: {{ vitamui.iam_internal.host }}
    server-port: {{ vitamui.iam_internal.port_service }}
{% if vitamui.iam_internal.secure|lower == "true" %}
    secure: {{ vitamui.iam_internal.secure|lower }}
    ssl-configuration:
      keystore:
        key-path: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
        key-password: {{ password_keystore }}
        type: JKS
      truststore:
        key-path: {{ vitamui_folder_conf }}/truststore_{{ vitamui_certificate_type }}.jks
        key-password: {{ password_truststore }}
      hostname-verification: false
{% endif %}


server-identity:
  identityName: {{ vitamui_site_name if groups['hosts_vitamui_consul_server'] | default([]) | length > 0 else vitam_site_name }}
  identityRole: {{ vitamui_struct.vitamui_component }}
  identityServerId: 1



opentracing:
  jaeger:
    enabled: {{ opentracing.jaeger.enabled }}
    logSpans: {{ opentracing.jaeger.log_spans }}
    expandExceptionLogs: {{opentracing.jaeger.expand_exception_logs}}
    udp-sender:
      host: {{ opentracing.jaeger.udp_sender.host }}
      port: {{ opentracing.jaeger.udp_sender.port }}