forked from civitai/civitai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env-example
173 lines (138 loc) · 4.52 KB
/
.env-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# 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
# The default values for Prisma, Redis, S3, and Email are set to work with the docker-compose setup
# Prisma
# (required)
DATABASE_URL=postgresql://modelshare:postgres@localhost:5432/postgres?schema=public&connection_limit=5
# (required)
DATABASE_REPLICA_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,send-notifications,jobs
# 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=
# Integrations
DISCORD_BOT_TOKEN=
DISCORD_GUILD_ID=
# File uploading
S3_UPLOAD_KEY=REFER_TO_README
S3_UPLOAD_SECRET=REFER_TO_README
S3_UPLOAD_BUCKET=modelshare
S3_UPLOAD_REGION=us-east-1
S3_UPLOAD_ENDPOINT=http://localhost:9000
S3_SETTLED_BUCKET=settled
S3_IMAGE_UPLOAD_BUCKET=images
S3_IMAGE_CACHE_BUCKET=cache
S3_ORIGINS=http://localhost:3000
S3_FORCE_PATH_STYLE=true
# Cloudflare
CF_IMAGES_TOKEN=
CF_ACCOUNT_ID=
CF_API_TOKEN=
CF_ZONE_ID=
# Client env vars
NEXT_PUBLIC_IMAGE_LOCATION=
NEXT_PUBLIC_CONTENT_DECTECTION_LOCATION=https://publicstore.civitai.com/content_detection/model.json
NEXT_PUBLIC_CIVITAI_LINK=http://localhost:3000
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
# Clickhouse Connectivity
CLICKHOUSE_HOST=
CLICKHOUSE_USERNAME=
CLICKHOUSE_PASSWORD=
CLICKHOUSE_TRACKER_URL=
# Email
EMAIL_HOST=localhost
# (required)
EMAIL_PORT=1025
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
RATE_LIMITING=true
TRPC_ORIGINS=
# Security
SCANNING_ENDPOINT=http://scan-me.civitai.com/enqueue
SCANNING_TOKEN=thisisnotatoken
# Delivery worker
DELIVERY_WORKER_ENDPOINT=https://delivery-worker.civitai.com/download
DELIVERY_WORKER_TOKEN=thisisnotatoken
# Payments
STRIPE_SECRET_KEY=thisisnotakey
STRIPE_WEBHOOK_SECRET=thisisnotasecret
STRIPE_CONNECT_WEBHOOK_SECRET=thisisnotasecret
STRIPE_DONATE_ID=price_1MZHyDLAn4if8jivVbH5PhMc
TIER_METADATA_KEY=tier
# Features
FEATURE_FLAG_EARLY_ACCESS_MODEL=public
NEXT_PUBLIC_GIT_HASH=somehash
# MeiliSearch
SEARCH_HOST=https://localhost:7700
SEARCH_API_KEY=aSampleMasterKey
NEXT_PUBLIC_SEARCH_HOST=https://localhost:7700
NEXT_PUBLIC_SEARCH_CLIENT_KEY=aSampleKey
# Scheduler endpoint
ORCHESTRATOR_ENDPOINT=url
ORCHESTRATOR_ACCESS_TOKEN=cooltoken
# Civitai Buzz
BUZZ_ENDPOINT=https://localhost
SIGNALS_ENDPOINT=https://localhost
NEXT_PUBLIC_SIGNALS_ENDPOINT=https://localhost
# BaseURL:
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# Recaptcha
RECAPTCHA_PROJECT_ID=aSampleKey
NEXT_PUBLIC_RECAPTCHA_KEY=aSampleKey
# Paypal for Buzz Payments:
PAYPAL_SECRET=anotherkey
PAYPAL_CLIENT_ID=akey
NEXT_PUBLIC_PAYPAL_CLIENT_ID=akey
RESOURCE_RECOMMENDER_URL=
NOTIFICATION_DB_URL=
NOTIFICATION_DB_REPLICA_URL=
# NCMEC (Testing Account)
NCMEC_URL=https://exttest.cybertip.org/ispws
NCMEC_USERNAME=usr123
NCMEC_PASSWORD=pswd123
# MeiliSearch
METRICS_SEARCH_HOST=https://localhost:7700
METRICS_SEARCH_API_KEY=aSampleMasterKey
# Payment Provider
PADDLE_SECRET_KEY=
PADDLE_WEBHOOK_SECRET=
NEXT_PUBLIC_PADDLE_TOKEN=
NEXT_PUBLIC_DEFAULT_PAYMENT_PROVIDER= # Paddle OR Stripe. Defaults to Stripe if Paddle env. variables are missing.
# Fingerprint
# Secret 64 chars, IV 32 chars
FINGERPRINT_SECRET=61952c5f9c9f1938abcf288bff56021a927a0a829f2e839a7a9fe219c83dca0c
FINGERPRINT_IV=b5f09724c7567e53d47d0a26bfa263e4
# CF Turnstile
NEXT_PUBLIC_CF_INVISIBLE_TURNSTILE_SITEKEY=1x00000000000000000000BB
CF_INVISIBLE_TURNSTILE_SECRET=1x0000000000000000000000000000000AA
NEXT_PUBLIC_CF_MANAGED_TURNSTILE_SITEKEY=1x00000000000000000000AA
CF_MANAGED_TURNSTILE_SECRET=1x0000000000000000000000000000000AA
# Model Ingestion
CONTENT_SCAN_ENDPOINT=http://localhost:3000
CONTENT_SCAN_CALLBACK_URL=http://localhost:3000