feat: Add block account creation (#80)

This commit is contained in:
subnub
2025-03-01 03:07:19 -05:00
committed by GitHub
parent 960ab2c0b2
commit fc48827338
5 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -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
+4 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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
+2 -2
View File
@@ -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,