mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-06 12:04:00 +09:00
## Description Connecting to database now needs `DIRECT_URL` too, referene https://github.com/webstudio-is/webstudio/blob/main/packages/prisma-client/prisma/schema.prisma#L13-L17 ```sh datasource db { provider = "postgres" url = env("DATABASE_URL") directUrl = env("DIRECT_URL") } ``` ## Code Review - [ ] hi @istarkov , I need you to do - detailed review (read every line) ## Before requesting a review - [x] made a self-review
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
BUILDER_HOST=webstudio.is
|
|
DATABASE_URL=postgresql://user:pass@localhost/webstudio
|
|
DIRECT_URL=postgresql://user:pass@localhost/webstudio
|
|
AUTH_SECRET="# Linux: $(openssl rand -hex 32) or go to https://generate-secret.now.sh/64"
|
|
GH_CLIENT_SECRET=
|
|
GH_CLIENT_ID=
|
|
DEV_LOGIN=true
|
|
|
|
# Restrictions
|
|
MAX_ASSETS_PER_PROJECT=50
|
|
|
|
# relative to current working directory
|
|
FILE_UPLOAD_PATH="public/s/uploads"
|
|
ASSET_BASE_URL=/s/uploads/
|
|
|
|
# Optional max upload size in Mb
|
|
# MAX_UPLOAD_SIZE=10
|
|
|
|
# S3 envs
|
|
# S3_BUCKET=
|
|
# S3_REGION=
|
|
# S3_ACL="public-read"
|
|
# S3_ENDPOINT=
|
|
# S3_ACCESS_KEY_ID=
|
|
# S3_SECRET_ACCESS_KEY=
|
|
|
|
# if using r2 this your worker url
|
|
# ASSET_CDN_URL=https://assets.webstudio.is
|
|
|
|
# Publisher config
|
|
# PUBLISHER_HOST=wstd.io
|
|
# PUBLISHER_ENDPOINT=https://publisher.webstudio.is
|
|
# PUBLISHER_TOKEN=
|
|
|
|
# Base origin for accessing user-generated build (canvas / preview / etc)
|
|
# Should contain protocol and host (e.g. https://example.com)
|
|
# Will be detected automatically in development environments like localhost or preview deployment
|
|
# BUILD_ORIGIN=https://wstd.live
|
|
|
|
# If set to `true`, user-generated build will be available
|
|
# only at {project.domain} subdomain of {BUILD_ORIGIN}.
|
|
# This is used in production deployment for security reasons.
|
|
# BUILD_REQUIRE_SUBDOMAIN=
|
|
|
|
# Enable features behind a flag, * enables all.
|
|
FEATURES=*
|
|
|
|
# TRCP server url and API token. If empty local TRPC server is used
|
|
TRPC_SERVER_URL=
|
|
TRPC_SERVER_API_TOKEN=
|
|
|
|
# AI Features
|
|
OPENAI_KEY=
|
|
OPENAI_ORG=
|