Sourcegraph docs Sourcegraph docs

Sections

  • Home
  • Getting started
  • Tutorials
  • Code search
    • Tutorials
    • How-to guides
    • Explanations
    • Reference
  • Code navigation
    • How-to guides
    • Explanations
    • Reference
  • Batch Changes
    • Quickstart
    • Explanations
    • Tutorials
    • How-to guides
    • References
  • Code Insights
    • Quickstart
    • Explanations
    • How-to guides
    • References
  • Notebooks
    • Quickstart
  • Code monitoring
    • Quickstart
    • Explanations
    • How-to guides
  • Integrations
    • Browser extension
    • Editors
    • Browser search engine
  • CLI
    • Quickstart
    • Explanations
    • How-to guides
    • References
  • Cloud
  • Administration
    • Deploy
    • Upgrade
    • Configuration
    • Code hosts
    • User authentication
    • Access control
    • Repository permissions
    • Observability
    • Analytics
    • Executors
    • FAQ
    • Troubleshooting
    • How-to guides
    • Enterprise getting started guide
    • Pricing
  • Development
    • Setup
    • How-to guides
    • Background information
    • Contributing
  • Dotcom
  • App (experimental)
  • Cody (experimental)
  • Own (experimental)

  • ★ Search query syntax
  • ★ Sourcegraph API
  • ★ Changelog

External

  • About Sourcegraph
  • Sourcegraph.com

Configuring Sourcegraph

On this page:

  • Common tasks
  • Advanced tasks
Edit this page
Home / admin / config

Configuring Sourcegraph

This page documents how to configure a Sourcegraph instance. For deployment configuration, please refer to the relevant deployment docs for your deployment type.

  • Site configuration
  • Global and user settings
  • Code host configuration (GitHub, GitLab, and the Nginx HTTP server.)
  • Search configuration
  • Configuring Authorization and Authentication
  • Batch Changes configuration

Common tasks

  • Add Git repositories from your code host
  • Add user authentication providers (SSO)
  • Configure search scopes
  • Integrate with Phabricator
  • Add organizations
  • Add teams Experimental
  • Set up HTTPS
  • Use a custom domain
  • Configure email sending / SMTP server
  • Update Sourcegraph
  • Using external services (PostgreSQL, Redis, S3/GCS)
  • PostgreSQL Config
  • Disabling user invitations
  • Configuring webhooks

Advanced tasks

  • Loading configuration via the file system
  • Restore postgres database from snapshot
  • Enabling database encryption for sensitive data
  • About Sourcegraph
  • Sourcegraph.com
  • Code (GitHub)
  • Terms
  • Security
  • Privacy