diff --git a/README.md b/README.md index a15f5f77..5d844ab3 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,10 @@ This project is deployed in accordance to the [DargStack template](https://githu The job scheduler's AWS bucket name. + - ### `jobber_aws-configuration` + + The job scheduler's AWS configuration. + - ### `jobber_aws-credentials` The job scheduler's AWS credentials. diff --git a/src/development/configurations/jobber/aws-config b/src/development/secrets/jobber/aws-configuration.secret similarity index 100% rename from src/development/configurations/jobber/aws-config rename to src/development/secrets/jobber/aws-configuration.secret diff --git a/src/production/configurations/jobber/aws-config b/src/development/secrets/jobber/aws-configuration.secret.template similarity index 81% rename from src/production/configurations/jobber/aws-config rename to src/development/secrets/jobber/aws-configuration.secret.template index 3d855614..43cb79c8 100644 --- a/src/production/configurations/jobber/aws-config +++ b/src/development/secrets/jobber/aws-configuration.secret.template @@ -1,8 +1,8 @@ [default] -region = nl-ams +region = s3 = - endpoint_url = https://s3.nl-ams.scw.cloud + endpoint_url = signature_version = s3v4 max_concurrent_requests = 100 max_queue_size = 1000 @@ -10,7 +10,7 @@ s3 = # Edit the multipart_chunksize value according to the file sizes that you want to upload. The present configuration allows to upload files up to 10 GB (100 requests * 10MB). For example setting it to 5GB allows you to upload files up to 5TB. multipart_chunksize = 10MB s3api = - endpoint_url = https://s3.nl-ams.scw.cloud + endpoint_url = [plugins] endpoint = awscli_plugin_endpoint \ No newline at end of file diff --git a/src/development/stack.yml b/src/development/stack.yml index 8fadd81d..251ed9a4 100644 --- a/src/development/stack.yml +++ b/src/development/stack.yml @@ -13,6 +13,9 @@ secrets: jobber_aws-credentials: # The job scheduler's AWS credentials. file: ./secrets/jobber/aws-credentials.secret + jobber_aws-configuration: + # The job scheduler's AWS configuration. + file: ./secrets/jobber/aws-configuration.secret jobber_msmtprc: # The job scheduler's SMTP client configuration. file: ./secrets/jobber/msmtprc.secret @@ -170,12 +173,13 @@ services: target: /etc/aliases - jobber_aws-bucket - jobber_aws-credentials + - source: jobber_aws-configuration + target: /home/jobberuser/.aws/config - source: jobber_msmtprc target: /etc/msmtprc volumes: - ../production/backups/postgres/:/backups/ - ./configurations/jobber/.jobber:/home/jobberuser/.jobber:ro - - ./configurations/jobber/aws-config:/home/jobberuser/.aws/config:ro minio: #DARGSTACK-REMOVE # You can access the s3 console at [minio.localhost](https://minio.localhost/). # You can access the s3 api service at [s3.localhost](https://s3.localhost/) if you want to access via cli from outside the stack.