chore: sync various improvements and fixes
- Update gitignore and serena config - Improve connection and voting stores - Enhance admin routes and socket handling - Update client-screen views - Add auth middleware Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,13 @@ import { participantService } from './services/participant.service';
|
||||
|
||||
async function main(): Promise<void> {
|
||||
try {
|
||||
if (!config.adminAccessCode) {
|
||||
logger.warn('ADMIN_ACCESS_CODE 未配置,管理员登录将被拒绝');
|
||||
}
|
||||
if (!config.isDev && config.jwtSecret === 'dev-secret-change-in-production') {
|
||||
logger.error('生产环境禁止使用默认 JWT_SECRET,请配置环境变量');
|
||||
process.exit(1);
|
||||
}
|
||||
// Connect to Database
|
||||
logger.info('Connecting to Database...');
|
||||
await connectDatabase();
|
||||
@@ -79,4 +86,3 @@ async function main(): Promise<void> {
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user