这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ recommended) you can use docker's data volumes feature. For example, to store
graphite's metric database at `/data/graphite` on the host, you could use:

docker run -v /data/graphite:/var/lib/graphite/storage/whisper \
-e SECRET_KEY='random-secret-key' \
-p 80:80 \
-p 3000:3000 \
-p 2003:2003 \
Expand All @@ -48,6 +49,8 @@ resulting in whisper files of approximately 2.5MiB.

### Getting started

Generate your SECRET_KEY from [here](http://www.miniwebtool.com/django-secret-key-generator/). It is optional but highly recommended.

**Fill in the blanks** in supervisord.conf before building the image, otherwise Google auth will not work. You will need to register an app on google see: https://github.com/bitly/google_auth_proxy for more details

PR welcome to improve this config.
Expand Down
8 changes: 8 additions & 0 deletions graphite/local_settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Edit this file to override the default graphite settings, do not edit settings.py
from os import environ

# Set SECRET_KEY if passed in via environment variable
try:
if environ['SECRET_KEY']:
SECRET_KEY = environ['SECRET_KEY']
except KeyError:
pass

# Turn on debugging and restart apache if you ever see an "Internal Server Error" page
#DEBUG = True
Expand Down