Skip to content

Config file options

With the configuration file, you can control certain aspects of the Telescope instance’s operation. The TELESCOPE_CONFIG_FILE variable specifies the configuration file that is used.

Please check the config.py to get a detailed view of the default values used in the configuration and how they are merged with the values from the configuration files.

auth:
providers:
github:
# Enable or disable login via GitHub (https://github.com/iamtelescope/telescope/blob/main/backend/base/settings.py#L143-L154)
enabled: false
# Add users to the specified group on login (the group must exist)
default_group: null
# client_id, key, and secret should be obtained from GitHub (https://docs.allauth.org/en/dev/socialaccount/providers/github.html)
client_id: ''
key: ''
secret: ''
# If specified, users must belong to one of these organizations to log in.
organizations: []
# If set to true, forces login page to redirect to github auth (only available when github auth provider is enabled)
force_github_auth: false
# If set to true, the user is always authenticated without any conditions
enable_testing_auth: false
# If enable_testing_auth is set true, defines the username of the logged-in user
testing_auth_username: telescope
django:
CSRF_TRUSTED_ORIGINS:
- http://localhost:9898
DATABASES:
default:
ENGINE: django.db.backends.sqlite3
NAME: telescope-default-db.sqlite3
DEBUG: false
gunicorn:
bind: 127.0.0.1:9898
max_requests: 50
max_requests_jitter: 50
timeout: 120
workers: 8
limits:
# Specifies the maximum number of saved views a single user can create. If set to `0`, the limit is disabled and users can create unlimited views.
max_saved_views_per_user: 0
frontend:
show_github_url: true # show or not github url on top panel
github_url: ""
show_docs_url: true # show or not docs url on top panel
docs_url: ""
logging:
# Options: default, dev, or json
format: default
# Setup for log levels of different handlers
levels:
all: DEBUG
django: DEBUG
django.request: DEBUG
django.template: INFO
django.utils.autoreload: INFO
telescope: DEBUG