Skip to content

Commit

Permalink
Add querystring auth
Browse files Browse the repository at this point in the history
  • Loading branch information
didithilmy committed Nov 23, 2020
1 parent ab9dae6 commit 0abebfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

env = environ.Env(
DEBUG=(bool, False),
AWS_S3_ENDPOINT_URL=(str, None)
AWS_S3_ENDPOINT_URL=(str, None),
AWS_QUERYSTRING_AUTH=(bool, True)
)

# reading .env file
Expand Down Expand Up @@ -147,3 +148,4 @@
AWS_S3_ENDPOINT_URL = env('AWS_S3_ENDPOINT_URL')
AWS_STORAGE_BUCKET_NAME = env('AWS_STORAGE_BUCKET_NAME')
AWS_LOCATION = env('AWS_LOCATION')
AWS_QUERYSTRING_AUTH = env('AWS_QUERYSTRING_AUTH')
1 change: 1 addition & 0 deletions backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_S3_ENDPOINT_URL: "${AWS_S3_ENDPOINT_URL}"
AWS_STORAGE_BUCKET_NAME: "${AWS_STORAGE_BUCKET_NAME}"
AWS_QUERYSTRING_AUTH: "${AWS_QUERYSTRING_AUTH}"
DEBUG: "${DEBUG}"
postgres:
image: postgres
Expand Down
6 changes: 3 additions & 3 deletions extension/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function akaStoriesOnClick(username, imageUrl) {
backgroundDismiss: true,
buttons: {
close: {
text: 'Tutup',
text: 'Close',
keys: ['esc']
}
}
Expand Down Expand Up @@ -94,7 +94,7 @@ function akaYourStoryOnClick() {
backgroundDismiss: true,
buttons: {
close: {
text: 'Tutup',
text: 'Close',
keys: ['esc']
}
},
Expand Down Expand Up @@ -151,7 +151,7 @@ function akaFollowersOnClick() {
backgroundDismiss: true,
buttons: {
close: {
text: 'Tutup',
text: 'Close',
keys: ['esc']
}
},
Expand Down

0 comments on commit 0abebfb

Please sign in to comment.