fix(rybbit): add DOMAIN_NAME env var to resolve Invalid Origin issue (#496)

* Update docker-compose.yml to include DOMAIN_NAME variable

* Add DOMAIN_NAME to template
This commit is contained in:
Shadyar Bakr
2025-11-08 09:19:23 +03:00
committed by GitHub
parent b6eb95e712
commit 24a80d2fdf
2 changed files with 5 additions and 2 deletions

View File

@@ -6,8 +6,8 @@
#
# You should treat these as placeholders - Rybbit only supports HTTPS.
#
# You should also update the `BASE_URL` environment variable when
# updating the domain entries with your custom domain.
# You should also update the `BASE_URL`, and `DOMAIN_NAME` environment
# variable when updating the domain entries with your custom domain.
services:
rybbit_clickhouse:
@@ -65,6 +65,7 @@ services:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BASE_URL=${BASE_URL}
- DOMAIN_NAME=${DOMAIN_NAME}
- DISABLE_SIGNUP=${DISABLE_SIGNUP}
depends_on:
rybbit_clickhouse:
@@ -84,6 +85,7 @@ services:
environment:
- NODE_ENV=production
- NEXT_PUBLIC_BACKEND_URL=${BASE_URL}
- DOMAIN_NAME=${DOMAIN_NAME}
- NEXT_PUBLIC_DISABLE_SIGNUP=${DISABLE_SIGNUP}
depends_on:
- rybbit_backend

View File

@@ -17,6 +17,7 @@ host = "${main_domain}"
[config.env]
BASE_URL = "http://${main_domain}"
DOMAIN_NAME= "${main_domain}"
BETTER_AUTH_SECRET = "${better_auth_secret}"
DISABLE_SIGNUP = "false"
CLICKHOUSE_DB = "analytics"