diff --git a/.env.example b/.env.example index 0feb472..12fbe59 100644 --- a/.env.example +++ b/.env.example @@ -26,5 +26,6 @@ MAIL_SMTP_WRITE_TIMEOUT=5000 GOOGLE_CLIENT_ID=change-me.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=change-me APP_OAUTH2_REDIRECT_URI=http://localhost:3000/oauth2/redirect +OPENAI_API_KEY=change-me MANAGEMENT_HEALTH_SHOW_DETAILS=always diff --git a/.env.production.example b/.env.production.example index 45c6709..9b8bf92 100644 --- a/.env.production.example +++ b/.env.production.example @@ -30,5 +30,6 @@ MAIL_SMTP_WRITE_TIMEOUT=5000 GOOGLE_CLIENT_ID=change-me.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=change-me APP_OAUTH2_REDIRECT_URI=https://your-frontend-domain/oauth2/redirect +OPENAI_API_KEY=change-me MANAGEMENT_HEALTH_SHOW_DETAILS=never diff --git a/.gradle-local/wrapper/dists/gradle-8.14.4-bin/92wwslzcyst3phie3o264zltu/gradle-8.14.4-bin.zip.lck b/.gradle-local/wrapper/dists/gradle-8.14.4-bin/92wwslzcyst3phie3o264zltu/gradle-8.14.4-bin.zip.lck new file mode 100644 index 0000000..e69de29 diff --git a/.gradle-local/wrapper/dists/gradle-8.14.4-bin/92wwslzcyst3phie3o264zltu/gradle-8.14.4-bin.zip.part b/.gradle-local/wrapper/dists/gradle-8.14.4-bin/92wwslzcyst3phie3o264zltu/gradle-8.14.4-bin.zip.part new file mode 100644 index 0000000..e69de29 diff --git a/build.gradle b/build.gradle index cb36d73..64c74a0 100644 --- a/build.gradle +++ b/build.gradle @@ -40,6 +40,9 @@ dependencies { //swagger implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.13' + implementation 'io.swagger.core.v3:swagger-core-jakarta:2.2.36' + implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.36' + implementation 'io.swagger.core.v3:swagger-models-jakarta:2.2.36' implementation 'org.springframework.retry:spring-retry' implementation 'org.springframework.boot:spring-boot-starter-aop' diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 8c81322..14a8931 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -6,6 +6,7 @@ services: - .env environment: SPRING_PROFILES_ACTIVE: prod + OPENAI_API_KEY: ${OPENAI_API_KEY:-} ports: - "${APP_PORT:-8080}:8080" restart: unless-stopped diff --git a/docker-compose.yml b/docker-compose.yml index eafcfc1..b899505 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: REDIS_PORT: 6379 REDIS_PASSWORD: REDIS_SSL_ENABLED: false + OPENAI_API_KEY: ${OPENAI_API_KEY:-} ports: - "8080:8080" depends_on: