Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
5a3be1b5
Commit
5a3be1b5
authored
13 years ago
by
David Ormsbee
Browse files
Options
Downloads
Patches
Plain Diff
extend AWS S3 expiration to 10 years so that we don't have askbot images disappearing
parent
373b7a82
No related branches found
Branches containing commit
Tags
release-2020-01-21-14.55
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
settings_new_askbot.py
+7
-0
7 additions, 0 deletions
settings_new_askbot.py
with
7 additions
and
0 deletions
settings_new_askbot.py
+
7
−
0
View file @
5a3be1b5
...
...
@@ -39,6 +39,13 @@ HTTPS = 'on'
MEDIA_URL
=
''
MEDIA_ROOT
=
''
# S3BotoStorage insists on a timeout for uploaded assets. We should make it
# permanent instead, but rather than trying to figure out exactly where that
# setting is, I'm just bumping the expiration time to something absurd (100
# years). This is only used if DEFAULT_FILE_STORAGE is overriden to use S3
# in the global settings.py
AWS_QUERYSTRING_EXPIRE
=
10
*
365
*
24
*
60
*
60
# 10 years
# Needed for Askbot
# Deployed machines: Move to S3
DEFAULT_FILE_STORAGE
=
'
django.core.files.storage.FileSystemStorage
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment