aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Setting.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-06-20 18:45:56 +0900
committerPitu <[email protected]>2021-06-20 18:45:56 +0900
commit0917f6f91f4c07703ea7bc62e3860750fe685111 (patch)
treefe80016b267cece550f0bcf5a489276182ee333c /src/api/structures/Setting.js
parentfix: return all used values (diff)
downloadhost.fuwn.me-0917f6f91f4c07703ea7bc62e3860750fe685111.tar.xz
host.fuwn.me-0917f6f91f4c07703ea7bc62e3860750fe685111.zip
fix: typos
Diffstat (limited to 'src/api/structures/Setting.js')
-rw-r--r--src/api/structures/Setting.js28
1 files changed, 7 insertions, 21 deletions
diff --git a/src/api/structures/Setting.js b/src/api/structures/Setting.js
index 7650ccb..0f4d59c 100644
--- a/src/api/structures/Setting.js
+++ b/src/api/structures/Setting.js
@@ -29,12 +29,13 @@ const schema = Joi.object({
.label('Service name')
.description('Name of the service'),
- domain: Joi.string().default(`http://localhost:${env.SERVER_PORT}`)
+ secret: Joi.string().default(``)
.meta({
section: Sections.SERVICE
})
- .label('Domain')
- .description('Full domain this instance is gonna be running on'),
+ .label('Secret')
+ .description('64 char secret key to sign JWT sessions')
+ .note('If this setting is changed then every user session will be invalidates and every user will need to log in again.'),
// File related settings
chunkSize: Joi.number().integer().greater(0)
@@ -68,7 +69,7 @@ const schema = Joi.object({
.label('Generated file name length')
.description('How long should the automatically generated file name be'),
- generatedAlbumLength: Joi.number().integer().min(6)
+ generatedAlbumLength: Joi.number().integer().min(4)
.default(6)
.meta({
section: Sections.FILE
@@ -76,21 +77,6 @@ const schema = Joi.object({
.label('Generated album name length')
.description('How long should the automatically generated album identifier be'),
- maxLinksPerAlbum: Joi.number().integer().greater(0)
- .default(5)
- .meta({
- section: Sections.FILE
- })
- .label('Maximum album links')
- .description('Maximum allowed number of a distinct links for an album'),
-
- uploadsFolder: Joi.string().default('uploads')
- .meta({
- section: Sections.FILE
- })
- .label('Uploads folder')
- .description('Name of the folder where the uploads will be stored'),
-
blockedExtensions: Joi.array()
.items(Joi.string().pattern(/^(\.\w+)+$/, { name: 'file extension' }))
.default(['.jar', '.exe', '.msi', '.com', '.bat', '.cmd', '.scr', '.ps1', '.sh'])
@@ -108,7 +94,7 @@ const schema = Joi.object({
.label('Public mode')
.description('Allows people to upload files without an account'),
- userAccount: Joi.boolean().default(true)
+ userAccounts: Joi.boolean().default(true)
.meta({
section: Sections.USERS
})
@@ -132,7 +118,7 @@ const schema = Joi.object({
.label('Meta description')
.description('Short and accurate summary of the content of the page'),
- metaKeyword: Joi.string().default('chibisafe,lolisafe,upload,uploader,file,vue,images,ssr,file uploader,free')
+ metaKeywords: Joi.string().default('chibisafe,lolisafe,upload,uploader,file,vue,images,ssr,file uploader,free')
.meta({
section: Sections.SOCIAL_AND_SHARING
})