-
Notifications
You must be signed in to change notification settings - Fork 10
/
.env.example
123 lines (93 loc) · 3.88 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
# Port to serve on
# This will be exposed to the host from docker compose automatically
# This must be applied to ALL services if not using compose
PORT=3000
# --------------------------------------------------------------------------
# API and Client
# --------------------------------------------------------------------------
# Public URL of the API
API_URL=http://localhost:3000
# --------------------------------------------------------------------------
# API
# --------------------------------------------------------------------------
# Postgres database URI
DATABASE_URL=
# An invite code will be required to create an account
INVITE_ONLY=false
# Sonyflake generator ID
# TODO: Replace this with IP address by default
WORKER_ID=0
# Key used to generate JWT tokens, this should be completely random
# Nothing bad will happen if this is changed but it is reccomended to avoid changing it
# Generate the key at https://onlinerandomtools.com/generate-random-string with a length of 64 and the "all" option
JWT_KEY=
# Public URL of the client
# This will usually be the same as API_URL if using compose
CLIENT_URL=http://localhost:3000
# File upload limit in megabytes
FILE_SIZE_LIMIT=100
# --------------------------------- STORAGE --------------------------------
# How files should be stored
# Valid options are: local, s3
STORAGE_PROVIDER=local
# Public URL of where files are served
# This will be the same as the API_URL if using LOCAL_SERVE and PROXY_FILES
STORAGE_URL=http://localhost:3000
# ------------------------------ LOCAL STORAGE -----------------------------
# Path to store files
LOCAL_PATH=./uploads
# Serve files from the API
LOCAL_SERVE=true
# ------------------------------- S3 STORAGE -------------------------------
# All these options are designed to be configurable for any S3 API (minio, aws, google)
# For AWS, settings can be found at https://docs.aws.amazon.com/general/latest/gr/s3.html
S3_BUCKET=
S3_ACCESS_KEY=
S3_SECRET_KEY=
S3_REGION=
S3_ENDPOINT=
# ---------------------------------- SMTP ----------------------------------
# Should SMTP be used
# If enabled, users will be required to verify their email address after registration
SMTP_ENABLED=false
# SMTP server, for gmail this is: smtp.gmail.com
SMTP_SERVER=
# Username (email)
SMTP_USERNAME=
# Password
SMTP_PASSWORD=
# ---------------------------------- OAUTH ---------------------------------
# YOUR_API_URL in the Callback URL will be the same as CLIENT_URL if using the compose configuration.
# Google OAuth provider.
#
# Required scopes: https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile
# Callback URL: YOUR_API_URL/api/auth/google/callback
GOOGLE_OAUTH_ENABLED=false
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Github OAuth provider.
#
# Required scopes: user
# Callback URL: YOUR_API_URL/api/auth/github/callback
GITHUB_OAUTH_ENABLED=false
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# Discord OAuth provider.
#
# Required scopes: identify, email
# Callback URL: YOUR_API_URL/api/auth/discord/callback
DISCORD_OAUTH_ENABLED=false
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
# --------------------------------------------------------------------------
# NGINX
# --------------------------------------------------------------------------
# This should be "on" if serving files through the API
# This is always the case if LOCAL_SERVE is true
# If serving files seperately or using S3 this should be "off"
PROXY_FILES=on
# --------------------------------------------------------------------------
# API and NGINX
# --------------------------------------------------------------------------
# File upload limit in megabytes
FILE_SIZE_LIMIT=100