mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
Co-authored-by: Dax McDonald` <31839142+daxmc99@users.noreply.github.com>
25 lines
982 B
Caddyfile
25 lines
982 B
Caddyfile
# Serves Sourcegraph over HTTPS, using Caddy's automatic HTTPS certificate feature:
|
|
# https://caddyserver.com/docs/automatic-https
|
|
#
|
|
# 🚨 Warning: If your DNS and Caddy configuration aren't properly configured (as
|
|
# specified in https://caddyserver.com/docs/automatic-https), you can
|
|
# run into Let's Encrypt rate limits which can block your certificates
|
|
# for up to a week.
|
|
# It's strongly recommened that you use the staging Caddyfile
|
|
# (https.lets-encrypt-staging.Caddyfile) to test your
|
|
# configuration before switching to this production one.
|
|
#
|
|
# Caddyfile documentation: https://caddyserver.com/docs/caddyfile
|
|
#
|
|
{
|
|
email {$SRC_ACME_EMAIL}
|
|
}
|
|
|
|
{$SRC_SITE_ADDRESS}
|
|
|
|
# Add the reverse proxies IPs (or IP CIDR ranges) to the trusted_proxies list.
|
|
# More information in https://caddyserver.com/docs/caddyfile/directives/reverse_proxy
|
|
reverse_proxy {
|
|
to {$SRC_FRONTEND_ADDRESSES}
|
|
trusted_proxies 0.0.0.0/0
|
|
} |