Skip to content

Commit

Permalink
🏗️ Add CLOUD_APP_DOMAIN host for cloud version
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-brabant committed Oct 16, 2023
1 parent 617b7cf commit 343b525
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
23 changes: 12 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ MEMBERS_DEMO_OAUTH_GOOGLE_CLIENT_SECRET=
# require('crypto').randomBytes(32).toString('hex')
AES_ENCRYPTION_KEY=

# ----------------------
# - Common configuration
# ----------------------

# We use a telemetry service to improve the product.
# You can disable it by setting the following variables to empty strings.
# Leave them as they are if you want to help us improving the product.
PUBLIC_TELEMETRY_KEY=
SECRET_TELEMETRY_KEY=

# ----------------------
# - Image configuration -
# Unless you really know what you are doing you most likely do not want to
Expand Down Expand Up @@ -92,16 +102,7 @@ DEV_POSTGRES_PORT=5432
# Unless you work at Agentlabs this part is not for you.
# ----------------------

CLOUD_APP_DOMAIN=
CLOUD_APP_WILDCARD_DOMAIN=
CLOUD_CONSOLE_URL=
CLOUD_CONSOLE_DOMAIN=
CLOUD_APP_WILDCARD_DOMAIN_DNS_API_KEY=

# ----------------------
# - Common configuration
# ----------------------

# We use a telemetry service to improve the product.
# You can disable it by setting the following variables to empty strings.
# Leave them as they are if you want to help us improving the product.
PUBLIC_TELEMETRY_KEY=
SECRET_TELEMETRY_KEY=
6 changes: 5 additions & 1 deletion cloud-proxy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
${CLOUD_APP_DOMAIN}:443 {
reverse_proxy gateway
}

{$CLOUD_APP_WILDCARD_DOMAIN}:443 {
tls {
dns godaddy {$CLOUD_APP_WILDCARD_DOMAIN_DNS_API_KEY}
Expand All @@ -6,7 +10,7 @@
reverse_proxy gateway
}

{$CLOUD_CONSOLE_URL}:443 {
{$CLOUD_CONSOLE_DOMAIN}:443 {
@console {
path /admin/*
}
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ services:
depends_on:
- gateway
environment:
- CLOUD_CONSOLE_URL=${CLOUD_CONSOLE_URL}
- CLOUD_CONSOLE_DOMAIN=${CLOUD_CONSOLE_DOMAIN}
- CLOUD_APP_DOMAIN=${CLOUD_APP_DOMAIN}
- CLOUD_APP_WILDCARD_DOMAIN=${CLOUD_APP_WILDCARD_DOMAIN}
- CLOUD_APP_WILDCARD_DOMAIN_DNS_API_KEY=${CLOUD_APP_WILDCARD_DOMAIN_DNS_API_KEY}
restart: unless-stopped
Expand Down

0 comments on commit 343b525

Please sign in to comment.