Skip to content

Commit

Permalink
feat: add AWS host preset (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Noah committed Oct 27, 2022
1 parent 464a61d commit 61db052
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ if [ -z "$1" ]; then
fi

if [ ! -z "$S3_PROVIDER" ]; then
if [ "$S3_PROVIDER" = "vultr" ]; then
echo "Using S3 provider: $S3_PROVIDER"

if [ "$S3_PROVIDER" = "aws" ]; then
S3_HOST="s3.amazonaws.com"
S3_HOST_BUCKET="%(bucket)s.s3.amazonaws.com"
elif [ "$S3_PROVIDER" = "vultr" ]; then
S3_HOST="ewr1.vultrobjects.com"
S3_HOST_BUCKET="%(bucket)s.ewr1.vultrobjects.com"
else
Expand Down

0 comments on commit 61db052

Please sign in to comment.