diff --git a/goofy-server/pom.xml b/goofy-server/pom.xml index 22efc797546bd4ec65326b23eb68a1c30eb4e73c..f458c20b5aafcc71aef62552c646f359419341e7 100644 --- a/goofy-server/pom.xml +++ b/goofy-server/pom.xml @@ -43,6 +43,15 @@ <groupId>net.devh</groupId> <artifactId>grpc-client-spring-boot-starter</artifactId> </dependency> + + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-actuator</artifactId> + </dependency> + <dependency> + <groupId>de.codecentric</groupId> + <artifactId>spring-boot-admin-starter-client</artifactId> + </dependency> <!-- own projects --> <dependency> diff --git a/goofy-server/src/main/resources/application-local.yml b/goofy-server/src/main/resources/application-local.yml new file mode 100644 index 0000000000000000000000000000000000000000..6701369f973f711c4017daea4c9a4ceef29f6cdf --- /dev/null +++ b/goofy-server/src/main/resources/application-local.yml @@ -0,0 +1,5 @@ +spring: + boot: + admin: + client: + url: http://localhost:8090 \ No newline at end of file diff --git a/goofy-server/src/main/resources/application-oc.yml b/goofy-server/src/main/resources/application-oc.yml index 2ff02fbea0ac56a3d16965e2247b04bb747e5767..990f684686c11a892bc7597d21a0c1912d11c5f2 100644 --- a/goofy-server/src/main/resources/application-oc.yml +++ b/goofy-server/src/main/resources/application-oc.yml @@ -1,3 +1,10 @@ +spring: + boot: + admin: + client: + instance: + prefer-ip: true + grpc: client: pluto: diff --git a/goofy-server/src/main/resources/application.yml b/goofy-server/src/main/resources/application.yml index 0b899014ee3b360c75835e2cfcca44a9105fa1dd..8a94428096f378c0ebc77f293eaa4398fac5f569 100644 --- a/goofy-server/src/main/resources/application.yml +++ b/goofy-server/src/main/resources/application.yml @@ -1,11 +1,23 @@ logging: level: ROOT: WARN - de.itvsh: INFO + '[de.itvsh]': INFO + +spring: + application: + name: Goofy server: http2: enabled: true + +management: + server: + port: 8081 + endpoints: + web: + exposure: + include: "*" goofy: production: false diff --git a/goofy-server/src/main/resources/banner.txt b/goofy-server/src/main/resources/banner.txt new file mode 100644 index 0000000000000000000000000000000000000000..13e3273b90490767f580107cfd3fec70dcb2ba0d --- /dev/null +++ b/goofy-server/src/main/resources/banner.txt @@ -0,0 +1,6 @@ + ___ ___ ___ ___ __ __ + / __| / _ \ / _ \ | __|\ \ / / +| (_ || (_) || (_) || _| \ / + \___| \___/ \___/ |_| |_| +================================ +${spring-boot.version} ${application.version} diff --git a/pom.xml b/pom.xml index feb66b26e05aec3d4f98174a040b2bfd3db24a8a..3a76d612875e8af6a1124b6d543004e56ef44495 100644 --- a/pom.xml +++ b/pom.xml @@ -22,6 +22,7 @@ <spring.boot.version>2.4.0</spring.boot.version> <grpc.spring-boot-starter.version>2.10.1.RELEASE</grpc.spring-boot-starter.version> + <spring-admin.version>2.3.1</spring-admin.version> <mapstruct.version>1.4.1.Final</mapstruct.version> <lorem.version>2.1</lorem.version> @@ -45,6 +46,12 @@ <scope>import</scope> </dependency> + <dependency> + <groupId>de.codecentric</groupId> + <artifactId>spring-boot-admin-starter-client</artifactId> + <version>${spring-admin.version}</version> + </dependency> + <!-- tools --> <dependency> <groupId>org.mapstruct</groupId> @@ -62,7 +69,7 @@ <artifactId>pluto-interface</artifactId> <version>${project.version}</version> </dependency> - + <dependency> <groupId>com.thedeanda</groupId> <artifactId>lorem</artifactId> @@ -80,7 +87,7 @@ <artifactId>maven-resources-plugin</artifactId> <version>${resources.plugin.version}</version> </plugin> - + <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId>