diff options
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/routes/auth/loginPOST.js | 2 | ||||
| -rw-r--r-- | src/api/scripts/overwriteConfig.js | 2 | ||||
| -rw-r--r-- | src/api/structures/Server.js | 2 | ||||
| -rw-r--r-- | src/api/structures/Setting.js | 2 | ||||
| -rw-r--r-- | src/api/utils/Util.js | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/api/routes/auth/loginPOST.js b/src/api/routes/auth/loginPOST.js index cc72145..665d0a3 100644 --- a/src/api/routes/auth/loginPOST.js +++ b/src/api/routes/auth/loginPOST.js @@ -35,7 +35,7 @@ class loginPOST extends Route { Create the jwt with some data */ const jwt = JWT.sign({ - iss: 'chibisafe', + iss: 'hostess', sub: user.id, iat: moment.utc().valueOf() }, Util.config.secret, { expiresIn: '30d' }); diff --git a/src/api/scripts/overwriteConfig.js b/src/api/scripts/overwriteConfig.js index 0355ea6..05a1b73 100644 --- a/src/api/scripts/overwriteConfig.js +++ b/src/api/scripts/overwriteConfig.js @@ -5,7 +5,7 @@ const Util = require('../utils/Util'); const start = async () => { try { await Util.writeConfigToDb(Util.getEnvironmentDefaults()); - console.log('Configuration overwriten, you can now start chibisafe'); + console.log('Configuration overwriten, you can now start Hostess'); process.exit(0); } catch (error) { console.error(error); diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js index b63d06d..859a97f 100644 --- a/src/api/structures/Server.js +++ b/src/api/structures/Server.js @@ -43,7 +43,7 @@ class Server { if ((req.url.includes('/api/album/') || req.url.includes('/zip')) && req.method === 'GET') return next(); // This bypasses the headers.accept if we are accessing the frontend if (!req.url.includes('/api/') && req.method === 'GET') return next(); - if (req.headers.accept && req.headers.accept.includes('application/vnd.chibisafe.json')) return next(); + if (req.headers.accept && req.headers.accept.includes('application/vnd.hostess.json')) return next(); return res.status(405).json({ message: 'Incorrect `Accept` header provided' }); }); this.server.use(bodyParser.urlencoded({ extended: true })); diff --git a/src/api/structures/Setting.js b/src/api/structures/Setting.js index bb37834..a622e04 100644 --- a/src/api/structures/Setting.js +++ b/src/api/structures/Setting.js @@ -118,7 +118,7 @@ const schema = Joi.object({ .label('Meta description') .description('Short and accurate summary of the content of the page'), - metaKeywords: Joi.string().default('chibisafe,lolisafe,upload,uploader,file,vue,images,ssr,file uploader,free') + metaKeywords: Joi.string().default('hostess,strelizia,fuwn,upload,uploader,file,vue,images,ssr,file uploader,free') .meta({ section: Sections.SOCIAL_AND_SHARING }) diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js index b243b2b..81b8a2d 100644 --- a/src/api/utils/Util.js +++ b/src/api/utils/Util.js @@ -57,8 +57,8 @@ class Util { // eslint-disable-next-line eqeqeq userAccounts: process.env.USER_ACCOUNTS == undefined ? true : false, metaThemeColor: process.env.META_THEME_COLOR || '#20222b', - metaDescription: process.env.META_DESCRIPTION || 'Blazing fast file uploader and bunker written in node! 🚀', - metaKeywords: process.env.META_KEYWORDS || 'chibisafe,lolisafe,upload,uploader,file,vue,images,ssr,file uploader,free', + metaDescription: process.env.META_DESCRIPTION || 'Hostess - Objectively the best, fastest, and most secure file host there is.', + metaKeywords: process.env.META_KEYWORDS || 'hostess,strelizia,fuwn,upload,uploader,file,vue,images,ssr,file uploader,free', metaTwitterHandle: process.env.META_TWITTER_HANDLE || '@your-handle', backgroundImageURL: process.env.BACKGROUND_IMAGE_URL || '', logoURL: process.env.LOGO_URL || '', |