mirror of
https://github.com/docmost/docmost.git
synced 2026-05-16 22:41:30 +08:00
fixes
* integrate websocket redis adapter * use APP_SECRET for jwt signing * auto migrate database on startup in production * add updatedAt to update db operations * create enterprise ee package directory * fix comment editor focus * other fixes
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import { IsString, IsUrl, validateSync } from 'class-validator';
|
||||
import { IsNotEmpty, IsUrl, validateSync } from 'class-validator';
|
||||
import { plainToInstance } from 'class-transformer';
|
||||
|
||||
export class EnvironmentVariables {
|
||||
@IsString()
|
||||
NODE_ENV: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsUrl({ protocols: ['postgres', 'postgresql'], require_tld: false })
|
||||
DATABASE_URL: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
APP_SECRET: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user