Skip to content

Commit

Permalink
Update application.properties with database and mail configurations
Browse files Browse the repository at this point in the history
- Set active Spring profile to local by default
- Enable ANSI output for logging
- Configure logging level and file
- Set server port with default value
- Expose all management endpoints and show health details
- Configure MariaDB datasource with environment variables
- Disable JPA SQL logging and stacktrace inclusion in errors
- Add security token and issuer configurations
- Disable JPA open-in-view
- Enable virtual threads
- Add Tomcat datasource validation settings
- Configure SMTP settings for Gmail
  • Loading branch information
LeonardoMeireles55 committed Jan 20, 2025
1 parent 58f5cb6 commit 942e068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ services:
SERVER_PORT: ${SERVER_DOCKER_PORT}
API_SECURITY_TOKEN_SECRET: ${API_SECURITY_TOKEN_SECRET}
API_SECURITY_ISSUER: ${API_SECURITY_ISSUER}
SPRING_MAIL_USERNAME: ${SPRING_MAIL_USERNAME}
SPRING_MAIL_PASSWORD: ${SPRING_MAIL_PASSWORD}
command: ["java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]
networks:
- qualitylab-net
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public abstract class AnalyticsHelperService implements IAnalyticsHelperService

private final AnalyticsRepository analyticsRepository;
private final EmailService emailService;

private final Pageable pageable = PageRequest.of(0, 200);

public AnalyticsHelperService(AnalyticsRepository analyticsRepository, EmailService emailService) {
Expand Down

0 comments on commit 942e068

Please sign in to comment.