-
-
Notifications
You must be signed in to change notification settings - Fork 262
/
.env.settings.sample
137 lines (95 loc) · 3.82 KB
/
.env.settings.sample
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
# NodeTube Settings. Use this file to turn functionality off and on.
# Whereas .env.private should be 'set and forget' and are private,
# .env.settings are less sensitive and changed more often.
## TECHNICAL SETTINGS ##
# determine which routes you want activated:
# has all web app routes, allows users to interact with file hosting
FRONTEND=true
# whether you want to run the app specifically to receive uploads and serve files
FILE_HOST=false
# whether to run authentication routes and fileserving for livestreaming
LIVESTREAM_APP=false
# set node env
NODE_ENV='development'
# whether to run ngrok from app.js
RUN_NGROK=true
# set web_concurrency for cluster API (livestream server should only equal 1, otherwise websockets don't work)
WEB_CONCURRENCY=1
## FILEHOST SETTINGS ##
# whether to save files to local directory and serve them locally
SAVE_AND_SERVE_FILES='true'
# local directory from which to serve files
SAVE_AND_SERVE_FILES_DIRECTORY='./uploads'
# whether to allow cross-origin-requests (use if using app as file_host)
ALLOW_COR=false
# upload files to B2 hosting using built-in integration (keys in .env.private file)
UPLOAD_TO_B2=false
# algorithm to mitigate viewbotting
CUSTOM_FRAUD_DETECTION=false
## CACHING SETTINGS ##
# whether to cache db results into redis
CACHING_ON=true
# whether to activate caching logs coming through the console
LOG_CACHING=false
# how long caching functionality should be run
CACHE_INTERVAL_IN_MINUTES=5
# cache interval for recent uploads
CACHE_RECENT_INTERVAL_IN_MINUTES=1
# email functionality
FORGOT_PASSWORD_EMAIL_FUNCTIONALITY_ON=false
CONFIRM_USER_EMAIL_FUNCTIONALITY_ON=false
CONFIRM_EMAIL_FUNCTIONALITY_ON=false
# meta tags for online sharing
META_DESCRIPTION=NodeTube - An open source file hosting platform built on NodeJS
META_IMAGE=https://newtube.app/images/full_size_logo.png
# serve from files that are saved locally
LOCAL_BACKUP_ON=false
LOCAL_BACKUP_DIRECTORY=''
# show location of log in console (helper function)
SHOW_LOG_LOCATION=false
# sets the thumbnail server that will be posted to during editing of thumbnails for uploads and user ( to separate file hosting from the frontend)
# if this is an empty string it will use the local route (aka api/upload/${upload.uniqueTag}/edit )
THUMBNAIL_SERVER=
# sets the frontend server for a user to be redirected to after they have edited a thumbnail
# if this is an empty string it will use the local route
FRONTEND_SERVER=''
# mail listening scripts
EMAIL_LISTENER_ON=false
SAVE_SEEN_EMAILS=false
# whether to have mongoose logs come through console
MONGOOSE_DEBUG=off
# incomplete #
CURRENT_UPLOAD_SERVER=uploads3
## WIDGETS ##
RECAPTCHA_ON=false
GOOGLE_ANALYTICS_ON=false
COINHIVE_ON=false
[true/false]
OPTIONAL_HEADER_ON=false
ZOPIM_ON=false
# ADMIN SETTINGS #
# require moderation on uploads if from an Untrusted user
# false means posts show up publicly visible by default
# true means they need to be moderated (approved by admin or mod)
RESTRICT_UNTRUSTED_UPLOADS=false
// show all or categories page via popular on header
// set default to all, other option 'overview'
POPULAR_DEFAULT='all'
# functionality to disable uploads sitewide
UPLOADS_ON=true
# level you want to allow, order from least to most controversial allowed [SFW,NSFW,SENS]
MAX_RATING_ALLOWED=SFW
# whether users can purchase access to advanced features in freemium model
PLUS_ENABLED=false
# whether moderation requests are sent to discord
MODERATION_UPDATES_TO_DISCORD=false
#
GET_CACHE=true
# this is loaded on the model to determine how the max size of an upload when user is created
DEFAULT_MAX_UPLOAD_SIZE_IN_MB=500
# allow users to buy a Plus subscription for the site
PLUS_ENABLED=false
# default landing page [overview, recent, globe, default]
DEFAULT_LANDING_PAGE=default
# whether emails are setup to send account confirmation emails
CONFIRM_EMAIL_FUNCTIONALITY_ON=false