mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
docker-compose: use caddy instead of nginx (#77)
This commit is contained in:
1 parent
3286a24d0f
commit
2585f42e30
5 files changed
+119
-13
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Serves Sourcegraph over HTTPS, using Caddy's automatic HTTPS certificate feature:
|
||||
# https://caddyserver.com/docs/automatic-https
|
||||
#
|
||||
# Note: This configuration uses Let's Encrypt's staging environment. This will
|
||||
# allow you to ensure that everything is correctly configured (with a reduced
|
||||
# chance of running into rate limit issues). Note that using this configuration
|
||||
# issues a fake certificate (for testing purposes) instead of a trusted one.
|
||||
#
|
||||
# 🚨 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 this Caddyfile to test your
|
||||
# configuration before switching to the production one.
|
||||
#
|
||||
# Caddyfile documentation: https://caddyserver.com/docs/caddyfile
|
||||
#
|
||||
{
|
||||
# Use Let's Encrypt's staging environment
|
||||
acme_ca "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||
email {$SRC_ACME_EMAIL}
|
||||
}
|
||||
|
||||
{$SRC_SITE_ADDRESS}
|
||||
|
||||
reverse_proxy {$SRC_FRONTEND_ADDRESSES}
|
||||
reverse_proxy {$SRC_FRONTEND_ADDRESSES}
|
||||
Reference in new issue
Block a user