-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.env.template
87 lines (62 loc) · 2.58 KB
/
.env.template
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
## 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
isCFTunnel=false # if you are using cloudflare tunnel, used for ip banning/logging
# 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
FeatureAmount=1 # amount of votes before feature
LikedAmount=1 # amount of likes for the project to show up on the "most liked" portion of the front page
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
HardRejectExpirationTime=604800 # seconds
## 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
## 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
## Mailjet ##
EmailLimit=200 # emails per day
MJApiKeyPublic=abc # public key
MJApiKeyPrivate=def # private key
## Reload ##
# dont use. it doesnt work.
IncludeReload=true # 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)
# todo: make all of these snake-case