refactor: Simplify Supabase and Teable blueprint JWT and port configurations

This commit is contained in:
Mauricio Siu
2025-03-09 22:00:36 -06:00
parent b32f752439
commit 09e6fd6aa3
2 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
variables:
main_domain: ${randomDomain}
db_password: ${password}
public_db_port: ${Math.round(Math.random() * (65534 - 32769) + 32769)}
public_db_port: ${randomPort}
config:
domains:
@@ -22,7 +22,7 @@ config:
# App
PUBLIC_ORIGIN: https://${main_domain}
PRISMA_DATABASE_URL: postgresql://teable:${db_password}@teable-db:5432/teable
PUBLIC_DATABASE_PROXY: ${main_domain}:${public_db_port}
PUBLIC_DATABASE_PROXY: ${TEABLE_HOST}:${TEABLE_DB_PORT}
# Need to support sending emails to enable the following configurations
# You need to modify the configuration according to the actual situation, otherwise it will not be able to send emails correctly.
#BACKEND_MAIL_HOST: "smtp.teable.io"