diff --git a/.env.example b/.env.example index 1a09d9f..2777696 100644 --- a/.env.example +++ b/.env.example @@ -51,9 +51,12 @@ SIDEKIQ_CONCURRENCY=5 # If you are using an non Amazon S3 compatible object # storage system, set the endpoint for that system here. # If using AWS S3 then comment it out - # S3_ENDPOINT= +# Set to "true" to force path style URLs. This option +# is only used for S3 compatible storage. +# S3_FORCE_PATH_STYLE=false + # Your AWS access key for accessing S3 AWS_ACCESS_KEY_ID= diff --git a/config/storage.yml b/config/storage.yml index 1c24a94..4da94c1 100644 --- a/config/storage.yml +++ b/config/storage.yml @@ -27,6 +27,7 @@ s3compatible: secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %> bucket: <%= ENV['AWS_BUCKET_NAME'] %> endpoint: <%= ENV['S3_ENDPOINT'] %> + force_path_style: <%= ENV['S3_FORCE_PATH_STYLE'] %> s3compatible_transfer: service: S3 @@ -34,6 +35,7 @@ s3compatible_transfer: secret_access_key: <%= ENV['TRANSFER_AWS_SECRET_ACCESS_KEY'] %> bucket: <%= ENV['TRANSFER_AWS_BUCKET_NAME'] %> endpoint: <%= ENV['TRANSFER_S3_ENDPOINT'] %> + force_path_style: <%= ENV['S3_FORCE_PATH_STYLE'] %> # Remember not to checkin your GCS keyfile to a repository # google: diff --git a/docker-compose.yml b/docker-compose.yml index a9af549..f4ff3dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,6 +43,7 @@ services: - SECRET_KEY_BASE=$SECRET_KEY_BASE - STORAGE_SERVICE=$STORAGE_SERVICE - S3_ENDPOINT=$S3_ENDPOINT + - S3_FORCE_PATH_STYLE=$S3_FORCE_PATH_STYLE networks: - default - shared