Skip to content

Commit

Permalink
Merge pull request #33 from revsys/add-fastly-pydotorg
Browse files Browse the repository at this point in the history
Add FASTLY_API_KEY to django settings
  • Loading branch information
benjaminp committed Jan 18, 2015
2 parents a51df91 + 20308a3 commit 0d424a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pillar/prod/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ base:
- match: nodegroup
- pydotorg.prod
- secrets.postgresql-users.pydotorg-prod
- prod.secrets.fastly

'pythontest':
- match: nodegroup
Expand Down
3 changes: 3 additions & 0 deletions salt/pydotorg/config/django-settings.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ MEDIA_ROOT = '/srv/pydotorg/media'

PEP_REPO_PATH = '/srv/pydotorg/peps'

# Fastly API Key
FASTLY_API_KEY = '{{ pillar["fastly"]["api_key"] }}'

{% if type == "staging" %}

CSRF_COOKIE_DOMAIN = 'staging.python.org'
Expand Down

0 comments on commit 0d424a3

Please sign in to comment.