docker-compose: use caddy instead of nginx (#77)

This commit is contained in:
Geoffrey Gilmore authored and GitHub committed 2020-02-21 21:57:37 -08:00
1 parent 3286a24d0f
commit 2585f42e30
5 files changed
+119 -13

No files matched your search

@@ -0,0 +1,21 @@
# 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}
reverse_proxy {$SRC_FRONTEND_ADDRESSES}
reverse_proxy {$SRC_FRONTEND_ADDRESSES}