Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph & Cody CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Technical changelog
    • Releases
  1. Docs
  2. admin
  3. url

Configuring the external URL

It is highly recommended that you do NOT make any of the nodes running Sourcegraph directly accessible to the Internet. Instead, configure an Internet Gateway or equivalent to forward traffic to httpNodePort or httpsNodePort on any of the nodes in your cluster.

When that is done, update your DNS records to point to your gateway's external IP, and change the following line in your site configuration:

JSON
{ // ... "externalURL": "https://domain.example.com" // ... }

On this page

  1. Configuring the external URL


Edit this page on GitHub
Questions? Give us feedback