Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7d2a2f89
Commit
7d2a2f89
authored
Oct 31, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5291 from fmyzjs/s3_storgae
When s3fs cannot be accessed replaced with osfs
parents
b4562ffe
4e528140
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
cms/envs/aws.py
+1
-8
cms/envs/bok_choy.auth.json
+7
-0
lms/envs/aws.py
+1
-8
lms/envs/bok_choy.auth.json
+7
-0
No files found.
cms/envs/aws.py
View file @
7d2a2f89
...
...
@@ -215,14 +215,7 @@ with open(CONFIG_ROOT / CONFIG_PREFIX + "auth.json") as auth_file:
AUTH_TOKENS
=
json
.
load
(
auth_file
)
############### XBlock filesystem field config ##########
if
'XBLOCK_FS_STORAGE_BUCKET'
in
ENV_TOKENS
:
DJFS
=
{
'type'
:
's3fs'
,
'bucket'
:
ENV_TOKENS
.
get
(
'XBLOCK_FS_STORAGE_BUCKET'
,
None
),
'prefix'
:
ENV_TOKENS
.
get
(
'XBLOCK_FS_STORAGE_PREFIX'
,
'/xblock-storage/'
),
'aws_access_key_id'
:
AUTH_TOKENS
.
get
(
'AWS_ACCESS_KEY_ID'
,
None
),
'aws_secret_access_key'
:
AUTH_TOKENS
.
get
(
'AWS_SECRET_ACCESS_KEY'
,
None
)
}
DJFS
=
AUTH_TOKENS
.
get
(
'DJFS'
,
None
)
EMAIL_HOST_USER
=
AUTH_TOKENS
.
get
(
'EMAIL_HOST_USER'
,
EMAIL_HOST_USER
)
EMAIL_HOST_PASSWORD
=
AUTH_TOKENS
.
get
(
'EMAIL_HOST_PASSWORD'
,
EMAIL_HOST_PASSWORD
)
...
...
cms/envs/bok_choy.auth.json
View file @
7d2a2f89
...
...
@@ -89,6 +89,13 @@
"url"
:
"http://localhost:18060/"
,
"username"
:
"lms"
},
"DJFS"
:
{
"type"
:
"s3fs"
,
"bucket"
:
"test"
,
"prefix"
:
"test"
,
"aws_access_key_id"
:
"test"
,
"aws_secret_access_key"
:
"test"
},
"SECRET_KEY"
:
""
,
"XQUEUE_INTERFACE"
:
{
"basic_auth"
:
[
...
...
lms/envs/aws.py
View file @
7d2a2f89
...
...
@@ -300,14 +300,7 @@ with open(CONFIG_ROOT / CONFIG_PREFIX + "auth.json") as auth_file:
AUTH_TOKENS
=
json
.
load
(
auth_file
)
############### XBlock filesystem field config ##########
if
'XBLOCK_FS_STORAGE_BUCKET'
in
ENV_TOKENS
:
DJFS
=
{
'type'
:
's3fs'
,
'bucket'
:
ENV_TOKENS
.
get
(
'XBLOCK_FS_STORAGE_BUCKET'
,
None
),
'prefix'
:
ENV_TOKENS
.
get
(
'XBLOCK_FS_STORAGE_PREFIX'
,
'/xblock-storage/'
),
'aws_access_key_id'
:
AUTH_TOKENS
.
get
(
'AWS_ACCESS_KEY_ID'
,
None
),
'aws_secret_access_key'
:
AUTH_TOKENS
.
get
(
'AWS_SECRET_ACCESS_KEY'
,
None
)
}
DJFS
=
AUTH_TOKENS
.
get
(
'DJFS'
,
None
)
############### Module Store Items ##########
HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS
=
ENV_TOKENS
.
get
(
'HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS'
,
{})
...
...
lms/envs/bok_choy.auth.json
View file @
7d2a2f89
...
...
@@ -109,6 +109,13 @@
"SOCIAL_AUTH_FACEBOOK_SECRET"
:
"test"
}
},
"DJFS"
:
{
"type"
:
"s3fs"
,
"bucket"
:
"test"
,
"prefix"
:
"test"
,
"aws_access_key_id"
:
"test"
,
"aws_secret_access_key"
:
"test"
},
"XQUEUE_INTERFACE"
:
{
"basic_auth"
:
[
"edx"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment