Skip to content

Commit

Permalink
IIIF #68 - Adding "S3_FORCE_PATH_STYLE" environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Nov 11, 2024
1 parent c89803e commit 099af5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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=<your 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=<your id>

Expand Down
2 changes: 2 additions & 0 deletions config/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ 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
access_key_id: <%= ENV['TRANSFER_AWS_ACCESS_KEY_ID'] %>
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:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 099af5b

Please sign in to comment.