Adding docker-compose for setting up ICS version
[nonrtric/rapp/ransliceassurance.git] / docker-compose / icsversion / config / nonrtric-gateway / application-nonrtricgateway.yaml
1 ################################################################################
2 #   Copyright (c) 2021 Nordix Foundation.                                      #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16
17 server:
18   port: 9090
19 spring:
20   cloud:
21     gateway:
22       httpclient:
23         ssl:
24           useInsecureTrustManager: true
25         wiretap: true
26       httpserver:
27         wiretap: true
28       routes:
29       - id: A1-Policy
30         uri: http://policy-agent:8081
31         predicates:
32         - Path=/a1-policy/**
33       - id: A1-EI
34         uri: http://ics:8083
35         predicates:
36         - Path=/ei-producer/**
37       - id: A1-EI2
38         uri: http://ics:8083
39         predicates:
40         - Path=/data-producer/**,/data-consumer/**
41 management:
42   endpoint:
43     gateway:
44       enabled: true
45   endpoints:
46     web:
47       exposure:
48         include: "gateway,loggers,logfile,health,info,metrics,threaddump,heapdump"
49 logging:
50   level:
51     ROOT: ERROR
52     org.springframework: ERROR
53     org.springframework.cloud.gateway: INFO
54     reactor.netty: INFO
55   file:
56     name: /var/log/nonrtric-gateway/application.log