feat: Add block account creation (#80)
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ TEMP_DIRECTORY=/temp/
|
||||
TEMP_VIDEO_THUMBNAIL_LIMIT=5000000000
|
||||
|
||||
# Block account creation (optional): If you want to block account creation, configure as so, but after you create an account.
|
||||
BLOCK_CREATE_ACCOUNT=false
|
||||
# BLOCK_CREATE_ACCOUNT=true
|
||||
|
||||
# Ports (optional): The ports to run the server on.
|
||||
# HTTP_PORT: Default port is 3000
|
||||
|
||||
@@ -93,4 +93,7 @@ SSL=
|
||||
# By default myDrive looks for certificate.crt, certificate.ca-bundle and certificate.key on the root of the project
|
||||
HTTPS_KEY_PATH=
|
||||
HTTPS_CA_PATH=
|
||||
HTTPS_CRT_PATH=
|
||||
HTTPS_CRT_PATH=
|
||||
|
||||
# Block account creation (optional): If you want to block account creation, configure as so, but after you create an account.
|
||||
# BLOCK_CREATE_ACCOUNT=true
|
||||
@@ -93,4 +93,7 @@ SSL=
|
||||
# By default myDrive looks for certificate.crt, certificate.ca-bundle and certificate.key on the root of the project
|
||||
HTTPS_KEY_PATH=
|
||||
HTTPS_CA_PATH=
|
||||
HTTPS_CRT_PATH=
|
||||
HTTPS_CRT_PATH=
|
||||
|
||||
# Block account creation (optional): If you want to block account creation, configure as so, but after you create an account.
|
||||
# BLOCK_CREATE_ACCOUNT=true
|
||||
@@ -93,4 +93,7 @@ SSL=
|
||||
# By default myDrive looks for certificate.crt, certificate.ca-bundle and certificate.key on the root of the project
|
||||
HTTPS_KEY_PATH=
|
||||
HTTPS_CA_PATH=
|
||||
HTTPS_CRT_PATH=
|
||||
HTTPS_CRT_PATH=
|
||||
|
||||
# Block account creation (optional): If you want to block account creation, configure as so, but after you create an account.
|
||||
# BLOCK_CREATE_ACCOUNT=true
|
||||
@@ -4,7 +4,7 @@ export default {
|
||||
passwordAccess: process.env.PASSWORD_ACCESS,
|
||||
passwordRefresh: process.env.PASSWORD_REFRESH,
|
||||
passwordCookie: process.env.PASSWORD_COOKIE,
|
||||
createAcctBlocked: process.env.BLOCK_CREATE_ACCOUNT,
|
||||
createAcctBlocked: process.env.BLOCK_CREATE_ACCOUNT === "true",
|
||||
root: process.env.ROOT,
|
||||
url: process.env.URL,
|
||||
mongoURL: process.env.MONGODB_URL,
|
||||
@@ -42,7 +42,7 @@ module.exports = {
|
||||
passwordAccess: process.env.PASSWORD_ACCESS,
|
||||
passwordRefresh: process.env.PASSWORD_REFRESH,
|
||||
passwordCookie: process.env.PASSWORD_COOKIE,
|
||||
createAcctBlocked: process.env.BLOCK_CREATE_ACCOUNT,
|
||||
createAcctBlocked: process.env.BLOCK_CREATE_ACCOUNT === "true",
|
||||
root: process.env.ROOT,
|
||||
url: process.env.URL,
|
||||
mongoURL: process.env.MONGODB_URL,
|
||||
|
||||
Reference in New Issue
Block a user