Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Region Configuration to S3 Client Setup #120

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public class NISTDistribServiceConfig {
/**
* the AWS region the service should operate in; this is ignored if mode=local.
*/
@Value("${cloud.aws.region:@null}")
@Value("${cloud.aws.region:us-east-1}")
String region;

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ server:
max-threads: 200
min-spare-threads: 10

cloud:
aws:
region: us-east-1

logging:
file: distservice.log
path: /var/log/dist-service
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ spring:
enabled: false

server:
port: 8083
port: 0 # Avoid conflict with actual service running port 8083

distrib:
bagstore:
Expand Down
Loading