From 17d66a527f38e888b59b6d3181e3e6867a36cee0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Fri, 28 Jul 2017 13:33:52 +0200 Subject: [PATCH] Describe configuration settings --- doc/dev/configuration.rst | 137 +++++++++++++++++++++++++++++++++------------- 1 file changed, 98 insertions(+), 39 deletions(-) rewrite doc/dev/configuration.rst (92%) diff --git a/doc/dev/configuration.rst b/doc/dev/configuration.rst dissimilarity index 92% index 0c1d98b4..dc408620 100644 --- a/doc/dev/configuration.rst +++ b/doc/dev/configuration.rst @@ -1,39 +1,98 @@ -.. _configuration: - -Configuration -============= - -* ADMINS -* ADSENSE_CLIENT -* ADSENSE_SLOT_BOTTOM -* BROKER_POOL_LIMIT -* BROKER_URL -* CACHE_BACKEND -* CACHE_LOCATION -* DATABASE_URL -* DEBUG -* DEFAULT_BASE_URL -* DEFAULT_FROM_EMAIL -* DIRECTORY_EXCLUDED_TAGS -* ELASTICSEARCH_SERVER -* ELASTICSEARCH_TIMEOUT -* FLATTR_KEY -* FLATTR_SECRET -* FLICKR_API_KEY -* GOOGLE_ANALYTICS_PROPERTY_ID -* GOOGLE_CLIENT_ID -* GOOGLE_CLIENT_SECRET -* LOGGING_CELERY_HANDLERS -* LOGGING_DJANGO_HANDLERS -* LOGGING_FILENAME -* LOGGING_MYGPO_HANDLERS -* MAINTENANCE -* OPBEAT_APP_ID -* OPBEAT_ORGANIZATION_ID -* OPBEAT_SECRET_TOKEN -* PODCAST_AD_ID -* SECRET_KEY -* SERVER_EMAIL -* SOUNDCLOUD_CONSUMER_KEY -* STAFF_TOKEN -* SUPPORT_URL +.. _configuration: + +Configuration +============= + +The following configuration parameters can be set through environment variables. + + +General +------- + +* ``ADMINS`` - corresponds to `Django's ADMINS setting `_. Specified as ``Name ``. Multiple entries can be separated by whitespace. +* ``DEBUG`` - Debug flug, see `Django's DEBUG setting `_ +* ``DEFAULT_BASE_URL`` - base URL for creating URLs, eg ``https://gpodder.net`` +* ``GOOGLE_ANALYTICS_PROPERTY_ID`` - Google Analytics Property ID +* ``MAINTENANCE`` - Maintenance flag +* ``SECRET_KEY`` - see `Django's SECRET_KEY setting `_ +* ``STAFF_TOKEN`` - token which can be appended to URLs to access staff-only pages +* ``SUPPORT_URL`` - URL where users can get support + + +Advertising +----------- + +* ``ADSENSE_CLIENT`` - Google AdSense Client ID +* ``ADSENSE_SLOT_BOTTOM``- Ad for the ad slot on the bottom of the page +* ``PODCAST_AD_ID`` - Database Id of the podcast which is currently advertising + + +Celery Task Queue +----------------- + +* ``BROKER_POOL_LIMIT`` - corresponds to `Celery's broker_pool_limit setting `_. Specifies the maximum number of connections that can be open in the connection pool. +* ``BROKER_URL`` - corresponds to `Celery's broker_url setting `_. Specifies the URL / connection string to the broker. + + +Caching +------- + +The following settings correspond to `Django's CACHE setting +`_. + +* ``CACHE_BACKEND`` - Django cache backend +* ``CACHE_LOCATION`` - Location of the cache + + +Database +-------- + +* ``DATABASE_URL`` - Database connection string, see `syntax and options `_. + + +Emails +------ + +* ``DEFAULT_FROM_EMAIL`` - From address for outgoing emails, see `Django's DEFAULT_FROM_EMAIL setting `_. + + +Search +------ + +* ``ELASTICSEARCH_SERVER`` - ``host:port`` of the Elasticsearch server +* ``ELASTICSEARCH_TIMEOUT`` - timeout in seconds for queries to the Elasticsearch server + + +Directory +--------- + +* ``DIRECTORY_EXCLUDED_TAGS`` - space-separated list of tags that should be excluded from the podcast directory + + +Feeds +----- + +* ``FLATTR_KEY`` - Flattr API key +* ``FLATTR_SECRET`` - Flattr API secret +* ``FLICKR_API_KEY`` - Flickr API key +* ``SOUNDCLOUD_CONSUMER_KEY`` - Soundcloud Consumer key + + +Logging +------- + +* ``SERVER_EMAIL`` - email address from which error mails are sent, see `Django's SERVER_EMAIL setting `_ +* ``LOGGING_CELERY_HANDLERS`` - space separated list of logging handlers for Celery log events +* ``LOGGING_DJANGO_HANDLERS`` - space separated list of logging handlers for Django log events +* ``LOGGING_MYGPO_HANDLERS`` - space separated list of logging handlers for mygpo log events +* ``LOGGING_FILENAME`` - filename for filesystem logs +* ``OPBEAT_APP_ID`` - Opbeat App ID +* ``OPBEAT_ORGANIZATION_ID`` - Opbeat Organization ID +* ``OPBEAT_SECRET_TOKEN`` - Opbeat Secret Token + + +Social Login +------------ + +* ``GOOGLE_CLIENT_ID`` - Google Client ID +* ``GOOGLE_CLIENT_SECRET`` - Google Client Secret -- 2.11.4.GIT