This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,32 @@ docker run \
184
184
-p 5000:5000 \
185
185
registry
186
186
```
187
+ ## S3 Storage with Cloudfront
188
+ It is possible Cloudfront in tandem with S3 storage, you need to configure Cloudfront to point it to your S3 bucket.
189
+
190
+ This flavor can be started as:
191
+ ```
192
+ docker run \
193
+ -e SETTINGS_FLAVOR=cloudfronts3 \
194
+ -e AWS_BUCKET=mybucket \
195
+ -e STORAGE_PATH=/registry \
196
+ -e AWS_KEY=myawskey \
197
+ -e AWS_SECRET=myawssecret \
198
+ -e SEARCH_BACKEND=sqlalchemy \
199
+ -e AWS_SECURE=false \
200
+ -e AWS_ENCRYPT=false \
201
+ -e AWS_PORT=80 \
202
+ -e AWS_DEBUG=true \
203
+ -e CF_BASE_URL=cloudfront_url
204
+ -e CF_KEYID=cloudfront_key_id
205
+ -e CF_KEYSECRET=cloudfront_private_key
206
+ -p 5000:5000 \
207
+ registry
208
+ ```
209
+ ` CF_BASE_URL ` is the Cloudfront base URL example: https://abcd.cloudfront.net
210
+ ` CF_KEYID ` is the ID of the Cloudfront keypair you are going to use to sign the URLs so the the registry can 302 to Cloudfront.
211
+ ` CF_KEYSECRET ` is either the private key as string or file location of the private key used to sign the URLS.
212
+
187
213
188
214
## Microsoft Azure Blob Storage
189
215
Original file line number Diff line number Diff line change @@ -90,6 +90,12 @@ s3: &s3
90
90
boto_port : _env:AWS_PORT
91
91
boto_calling_format : _env:AWS_CALLING_FORMAT
92
92
93
+ cloudfronts3 : &cloudfronts3
94
+ << : *s3
95
+ cloudfront :
96
+ base : _env:CF_BASE_URL
97
+ keyid : _env:CF_KEYID
98
+ keysecret : _env:CF_KEYSECRET
93
99
94
100
azureblob : &azureblob
95
101
<< : *common
You can’t perform that action at this time.
0 commit comments