Sourcegraph docs Sourcegraph docs Sourcegraph Docs

Sections

  • Getting Started
  • Tutorials

Cody

  • Overview
    • Cody for VS Code
    • Cody for JetBrains
    • Cody for Neovim
    • Cody for Web
    • Cody Desktop App
    • Cody Enterprise
  • Quickstart
  • Capabilities
  • Core Concepts
  • Cody Use Cases
  • Custom Commands
  • Feature Parity Reference
  • Troubleshooting
  • FAQ

Code Search

  • Overview
  • Tutorials
  • How-to guides
  • Explanations
  • Reference

Code navigation

  • Overview
  • How-to guides
  • Explanations
  • Reference

Batch Changes

  • Overview
  • Quickstart
  • Explanations
  • Tutorials
  • How-to guides
  • References

Code Insights

  • Overview
  • Quickstart
  • Explanations
  • How-to guides
  • References

Notebooks

  • Overview
  • Quickstart

Code monitoring

  • Overview
  • Quickstart
  • Explanations
  • How-to guides

Integrations

  • Overview
  • Browser extension
  • Editors
  • Browser search engine

CLI

  • Overview
  • Quickstart
  • Explanations
  • How-to guides
  • References

Administration

  • Overview
  • Deploy
  • Upgrade
  • Configuration
  • Licensing
  • Code hosts
  • User authentication
  • Access control
  • Repository permissions
  • Observability
  • Analytics
  • Executors
  • FAQ
  • Troubleshooting
  • How-to guides
  • Enterprise getting started guide
  • Pricing

Development

  • Overview
    • Setup
  • How-to guides
  • Contributing

Code Ownership

  • Overview
  • The CODEOWNERS format
  • CODEOWNERS ingestion
  • Configuration reference
  • Assigned ownership

  • Cloud
  • Dotcom
  • ★ Search query syntax
  • ★ Sourcegraph API
  • ★ SLAs and Premium Support
  • ★ Changelog

External

  • Sourcegraph.com
Theme

On this page

  • Common tasks
  • Advanced tasks
Edit this page on GitHub
Docs 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
  • Configuring rate limits
  • Configuring command recording

Advanced tasks

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