mirror of
https://github.com/civitai/civitai.git
synced 2026-09-20 22:08:18 +08:00
81 lines
1.9 KiB
Plaintext
81 lines
1.9 KiB
Plaintext
# Since .env is gitignored, you can use .env-example to build a new `.env` file when you clone the repo.
|
|
# Keep this file up-to-date when you add new variables to `.env`.
|
|
# This file will be committed to version control, so make sure not to have any secrets in it.
|
|
# If you are cloning this repo, create a copy of this file named `.env` and populate it with your secrets.
|
|
# When adding additional env variables, the schema in /env/schema.mjs should be updated accordingly
|
|
|
|
# Prisma
|
|
DATABASE_URL=postgresql://modelshare:postgres@localhost:5432/postgres?schema=public&connection_limit=5
|
|
REDIS_URL=redis://:redis@localhost:6379
|
|
|
|
# Logging
|
|
LOGGING=session-helpers,prisma:error,prisma:warn,prisma:query,update-metrics
|
|
|
|
# Next Auth
|
|
NEXTAUTH_SECRET=thisisnotasecret
|
|
NEXTAUTH_URL=http://localhost:3000
|
|
|
|
# Next Auth Discord Provider
|
|
DISCORD_CLIENT_ID=
|
|
DISCORD_CLIENT_SECRET=
|
|
|
|
# Next Auth GitHub Provider
|
|
GITHUB_CLIENT_ID=
|
|
GITHUB_CLIENT_SECRET=
|
|
|
|
# Next Auth Google Provider
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
|
|
# Next Auth Reddit Provider
|
|
REDDIT_CLIENT_ID=
|
|
REDDIT_CLIENT_SECRET=
|
|
|
|
# File uploading
|
|
S3_UPLOAD_KEY=
|
|
S3_UPLOAD_SECRET=
|
|
S3_UPLOAD_BUCKET=
|
|
S3_UPLOAD_REGION=
|
|
S3_UPLOAD_ENDPOINT=
|
|
S3_SETTLED_BUCKET=
|
|
S3_ORIGINS=
|
|
CF_IMAGES_TOKEN=
|
|
CF_ACCOUNT_ID=
|
|
|
|
# Client env vars
|
|
NEXT_PUBLIC_IMAGE_LOCATION=
|
|
NEXT_PUBLIC_CONTENT_DECTECTION_LOCATION=
|
|
NEXT_PUBLIC_CIVITAI_LINK=https://link.civitai.com
|
|
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
|
|
|
|
# Email
|
|
EMAIL_HOST=
|
|
EMAIL_PORT=
|
|
EMAIL_USER=
|
|
EMAIL_PASS=
|
|
EMAIL_FROM=
|
|
|
|
# Endpoint Protection
|
|
JOB_TOKEN=
|
|
WEBHOOK_TOKEN=
|
|
|
|
# Site Configuration
|
|
UNAUTHENTICATED_DOWNLOAD=true
|
|
UNAUTHENTICATED_LIST_NSFW=false
|
|
SHOW_SFW_IN_NSFW=false
|
|
MAINTENANCE_MODE=false
|
|
|
|
# Security
|
|
SCANNING_ENDPOINT=http://scan-me.civitai.com/enqueue
|
|
SCANNING_TOKEN=thisisnotatoken
|
|
|
|
|
|
# Payments
|
|
STRIPE_SECRET_KEY=thisisnotakey
|
|
STRIPE_WEBHOOK_SECRET=thisisnotasecret
|
|
STRIPE_DONATE_ID=price_1MZHyDLAn4if8jivVbH5PhMc
|
|
STRIPE_METADATA_KEY=tier
|
|
|
|
# Features
|
|
FEATURE_FLAG_EARLY_ACCESS_MODEL=public
|