-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.env.template
More file actions
108 lines (81 loc) · 3.82 KB
/
.env.template
File metadata and controls
108 lines (81 loc) · 3.82 KB
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
## Misc ##
PORT=8080
ApiURL=http://localhost:8080 # used for a lot of stuff
HomeURL=http://localhost:5173 # used for redirects
StudioURL=http://localhost:3000 # used for redirects
ServerSize=100mb # i forgot what this is for lowk. iirc size limit for some request things?
isCFTunnel=false # if you are using cloudflare tunnel, used for ip banning/logging
## BackBlaze ##
UseBackblaze=false # This is specifically for us - we use backblaze for storage, smaller websites will not need this
# NOTE: if using backblaze, minio is STILL REQUIRED, it is just not used for asset storage. It still stores
# project.json protobufs, project thumbnails, and pfps.
BackblazeBucketName=name # You'll only need this if you're using backblaze
BackblazeKeyID=id # You'll only need this if you're using backblaze. NOTE: this is redundant, but I don't care.
BackblazeKey=key # You'll only need this if you're using backblaze
BackblazeBucketID=id # You'll only need this is you're using backblaze
# This is if you want to leverage the "Bandwidth Alliance"
# if you have a public bucket and you download your files via cloudflare as a proxy, it is FREE
# (kinda - you pay a constant price per request. so enable caching with CF!!!).
UseCustomBackblazeDownloadUrl=false
BackblazeDownloadUrl=url
# reset of view checker
MaxViews=10000 # max views before reset of checker
ViewResetRate=3600000 # milliseconds
PageSize=20 # default page size for anything with pagination
MaxPageSize=100 # used when only showing penguin ranked user's projects, and a few other things (like the feed)
UploadingEnabled=true # self explanatory
ViewingEnabled=true # self explanatory
AccountCreationEnabled=true # self explanatory
FeatureAmount=1 # amount of votes before feature
FollowAmount=50 # follows to get the follow badge
LoveAmount=1 # amount of likes before like badge
# feed stuff
FeedExpirationTime=86400000 # milliseconds
FeedSize=10 # size of feed before it starts cutting off old stuff
LoginInvalidationTime=259200000 # milliseconds. 3 days
## Storage ##
MongoUri=mongouri
MinioEndPoint=endpoint
MinioPort=port
MinioClientID=id
MinioClientSecret=secret
UploadSize=5 # max size per asset in mb
CumulativeUploadSize=32 # max size per project (assests totaled) in mb
# note that donators can upload 1.75x this size
MaxFilesUpload=1000 # the max amount of files per project upload.
## OAuth ##
# scratch
ScratchOAuthClientID=abc
ScratchOAuthClientSecret=def
# github
GithubOAuthClientID=ghi
GithubOAuthClientSecret=jkl
# google
GoogleOAuthClientID=mno
GoogleOAuthClientSecret=pqr
## Webhooks ##
HeatWebhook=discord webhook
ReportWebhook=discord webhook
ModWebhook=discord webhook
AdminWebhook=discord webhook
ApiUpdatesWebhook=discord webhook
CreationWebhook=discord webhook
FeaturedWebhook=discord webhook
WatchlistWebhook=discord webhook
## Mailjet ##
EmailLimit=200 # emails per day
MJApiKeyPublic=abc # public key
MJApiKeyPrivate=def # private key
LinkExpire=120 # time for a password reset or email verification link to expire - 2 hours
## Reload ##
# dont use. it doesnt work.
IncludeReload=false # if you want to include the reload api, only do if you're running on docker & have the github stuff setup
ReloadApiKey=ghi # key that you will recieve from github webhook, used to verify that the request is from github
HostIP=abc # ip of the host (if you are able to use a "bridge" between the container and it use that), used for reloading the server
## Captcha ##
CFCaptchaSecret=def # get a secret from cloudflare turnstile
CFCaptchaEnabled=false # home env is PUBLIC_CAPTCHA_ENABLED. enable this when you put in production
__GIT=__GIT_HERE # used for the git commit hash when getting api metadata. automatically filled in by the build script (not provided)
## Docker ##
DOCKER_CURRENT_DIR_LOCATION=/path/to/dir # location of the directory containing the app
# todo: make all of these snake_case (it's goated)