placidenduwayo 1 gadu atpakaļ
revīzija
7c63e37ece

+ 16
- 0
README.md Parādīt failu

@@ -0,0 +1,16 @@
1
+#microservices configuration centralization
2
+Fichiers de configuration des services utilitaires:
3
+- microservices-registration-service: enregistrement des microservices en annuaire
4
+	- (eureka server)
5
+- microservices-gateway-service: proxy entre les clients http (front) et les microservices (back)
6
+	- (spring cloud gateway)
7
+
8
+Fichiers de configuration des microservices métiers:
9
+- address-microservice
10
+- employee-microservice
11
+- company-microservice
12
+- project-microservice
13
+
14
+Les configurations dans tous ces fichiers sont faites pour des images dockers des microservices
15
+
16
+

+ 28
- 0
application.yml Parādīt failu

@@ -0,0 +1,28 @@
1
+spring:
2
+  profiles:
3
+    active:
4
+      - dev
5
+  datasource:
6
+    username: root
7
+    password: root
8
+  jpa:
9
+    show-sql: true
10
+    hibernate:
11
+      ddl-auto: update
12
+    properties:
13
+      hibernate:
14
+        dialect: org.hibernate.dialect.MySQL8Dialect
15
+#to activate microservices to be discovered
16
+  cloud:
17
+    discovery:
18
+      enabled: true
19
+    #for microservices that interact with external microservices, this is to activate spring cloud circuit breaker resilience4j
20
+    openfeign:
21
+      circuitbreaker:
22
+        enabled: true
23
+# to indicate where registry service is running on
24
+eureka:
25
+  client:
26
+    service-url:
27
+      defaultZone: http://localhost:8761/eureka/
28
+#      defaultZone: http://microservices-registration-service:8761/eureka/

+ 23
- 0
backend-frontend-gateway-service.yml Parādīt failu

@@ -0,0 +1,23 @@
1
+server:
2
+  port: 8281
3
+spring:
4
+  application:
5
+    name: backend-frontend-gateway-service
6
+  cloud:
7
+    gateway:
8
+      default-filters:
9
+        - DedupeResponseHeader=Access-Control-Allow-Credentials Access-Control-Allow-Origin
10
+      globalcors:
11
+        cors-configurations:
12
+          '[/**]':
13
+            allowedOriginPatterns: "http://localhost:4200"
14
+            allowedMethods:
15
+              - GET
16
+              - PUT
17
+              - POST
18
+              - DELETE
19
+            allowedHeaders: 
20
+              - Accept
21
+              - Content-Type
22
+              - Origin
23
+              - X-Tenant

+ 8
- 0
clean-archi-business-service-address.yml Parādīt failu

@@ -0,0 +1,8 @@
1
+server:
2
+  port: 8282
3
+spring:
4
+  application:
5
+    name: clean-archi-business-service-address
6
+  datasource:
7
+    url: jdbc:mysql://localhost:3306/addresses-db?createDatabaseIfNotExist=true
8
+#    url: jdbc:mysql://microservices-db:3306/addresses-db?createDatabaseIfNotExist=true

+ 8
- 0
clean-archi-business-service-company.yml Parādīt failu

@@ -0,0 +1,8 @@
1
+server:
2
+  port: 8284
3
+spring:
4
+  application:
5
+    name: clean-archi-business-service-company
6
+  datasource:
7
+    url: jdbc:mysql://localhost:3306/companies-db?createDatabaseIfNotExist=true
8
+#    url: jdbc:mysql://microservices-db:3306/companies-db?createDatabaseIfNotExist=true

+ 8
- 0
clean-archi-business-service-employee.yml Parādīt failu

@@ -0,0 +1,8 @@
1
+server:
2
+  port: 8283
3
+spring:
4
+  application:
5
+    name: clean-archi-business-service-employee
6
+  datasource:
7
+    url: jdbc:mysql://localhost:3306/employees-db?createDatabaseIfNotExist=true
8
+#    url: jdbc:mysql://microservices-db:3306/employees-db?createDatabaseIfNotExist=true

+ 8
- 0
clean-archi-business-service-project.yml Parādīt failu

@@ -0,0 +1,8 @@
1
+server:
2
+  port: 8285
3
+spring:
4
+  application:
5
+    name: clean-archi-business-service-project
6
+  datasource:
7
+    url: jdbc:mysql://localhost:3306/projects-db?createDatabaseIfNotExist=true
8
+#    url: jdbc:mysql://microservices-db:3306/projects-db?createDatabaseIfNotExist=true

+ 9
- 0
microservices-registration-service.yml Parādīt failu

@@ -0,0 +1,9 @@
1
+server:
2
+  port: 8761
3
+spring:
4
+  application:
5
+    name: microservices-registration-service
6
+eureka:
7
+  client:
8
+    register-with-eureka: false
9
+    fetch-registry: false

+ 8
- 0
spring-security-user-auth-service.yml Parādīt failu

@@ -0,0 +1,8 @@
1
+server:
2
+  port: 8286
3
+spring:
4
+  application:
5
+    name: spring-security-user-auth-service
6
+  datasource:
7
+    url: jdbc:mysql://localhost:3306/users-authentication-db?createDatabaseIfNotExist=true
8
+#    url: jdbc:mysql://microservices-db:3306/users-authentication-db?createDatabaseIfNotExist=true

Powered by TurnKey Linux.