-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-company-blog-domain-microservice.yml
87 lines (69 loc) · 2.08 KB
/
my-company-blog-domain-microservice.yml
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
## Info endpoint
info:
app:
name: Blog service - Command Side
description: Blog service - Command Side (CQRS)
server:
port: ${PORT:8080}
logging:
level:
root: INFO
org.springframework: INFO
org.axonframework: INFO
com.idugalic: DEBUG
spring:
rabbitmq:
hostname: 127.0.0.1
username: guest
password: guest
axon:
amqp:
exchange: blog.events.fanout.exchange
security:
oauth2:
resource:
jwt:
keyUri: http://${authserver.hostname}:${authserver.port}/${authserver.contextPath}/oauth/token_key
keyValue: |
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnGp/Q5lh0P8nPL21oMMrt2RrkT9AW5jgYwLfSUnJVc9G6uR3cXRRDCjHqWU5WYwivcF180A6CWp/ireQFFBNowgc5XaA0kPpzEtgsA5YsNX7iSnUibB004iBTfU9hZ2Rbsc8cWqynT0RyN4TP1RYVSeVKvMQk4GT1r7JCEC+TNu1ELmbNwMQyzKjsfBXyIOCFU/E94ktvsTZUHF4Oq44DBylCDsS1k7/sfZC2G5EU7Oz0mhG8+Uz6MSEQHtoIi6mc8u64Rwi3Z3tscuWG2ShtsUFuNSAFNkY7LkLn+/hxLCu2bNISMaESa8dG22CIMuIeRLVcAmEWEWH5EEforTg+QIDAQAB
-----END PUBLIC KEY-----
eureka:
client:
serviceUrl:
defaultZone: ${vcap.services.my-company-registry-backingservice.credentials.uri:http://localhost:8761}/eureka/
# The OAuth2 server definition that would be used to send the authorization requests to
authserver:
hostname: localhost
port: 9999
contextPath: uaa
---
spring:
profiles: docker
rabbitmq:
hostname: my-rabbit
username: test
password: password
eureka:
# Register our microservices to Eureka using hostnames in a Docker environment will not work, they will all get
# one and the same hostname. Instead we configure them to use its IP address during registration with Eureka.
instance:
preferIpAddress: true
client:
serviceUrl:
defaultZone: http://registry:8761/eureka/
authserver:
hostname: authserver
port: 9999
contextPath: uaa
---
spring:
profiles: cloud
#authserver:
# hostname: ${vcap.services.authserver.credentials.uri}
# port: 80
# contextPath: uaa
eureka:
instance:
hostname: ${vcap.application.uris[0]}
nonSecurePort: 80