From 1c17b96e347061406d8a112244d78319ef03f4b0 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Sat, 12 Oct 2024 16:15:44 +0200 Subject: [PATCH] chore: make spring start a bit faster --- .github/workflows/deploy.yml | 4 ++-- backend/pom.xml | 1 + backend/src/main/resources/application.yml | 7 ++++++- backend/src/test/resources/application-test.yml | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fd765c71..14a880f8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -97,7 +97,7 @@ jobs: - name: Lint frontend env: - DEBUG: "hangar:*" + # DEBUG: "hangar:*" run: (cd frontend && pnpm lint:oxlint && pnpm lint:eslint) - name: Sync forth and back with crowdin @@ -118,7 +118,7 @@ jobs: # keep these in sync with compose! BACKEND_HOST: "http://hangar_backend:8080" PUBLIC_HOST: "https://hangar.papermc.dev" - DEBUG: "hangar:*" + # DEBUG: "hangar:*" NODE_ENV: "production" run: (cd frontend && pnpm build) diff --git a/backend/pom.xml b/backend/pom.xml index be90f3da..a0ef7641 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -397,6 +397,7 @@ org.openapitools openapi-generator-cli ${openapi-generator.version} + test diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 95cc7dd3..a35d36ec 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -40,6 +40,8 @@ spring: kubernetes: secrets: enableApi: true + jmx: + enabled: false # Enable this if you want to regenerate the frontend types #springdoc: @@ -47,10 +49,13 @@ spring: management: endpoints: - enabled-by-default: true + enabled-by-default: false web: exposure: include: "*" + endpoint: + health: + enabled: true hangar: dev: true diff --git a/backend/src/test/resources/application-test.yml b/backend/src/test/resources/application-test.yml index 3c77f91c..4ea2832d 100644 --- a/backend/src/test/resources/application-test.yml +++ b/backend/src/test/resources/application-test.yml @@ -12,6 +12,9 @@ spring: - classpath:db/migration baseline-version: 0.0 +springdoc: + use-fqn: false + hangar: disable-ratelimiting: true storage: