The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/apps/meteor/server/settings/misc.ts

16 lines
418 B

import { Random } from '@rocket.chat/random';
import { settingsRegistry } from '../../app/settings/server';
// Insert server unique id if it doesn't exist
export const createMiscSettings = async () => {
await settingsRegistry.add('uniqueID', process.env.DEPLOYMENT_ID || Random.id(), {
public: true,
});
await settingsRegistry.add('Initial_Channel_Created', false, {
type: 'boolean',
hidden: true,
});
};