Gestion nom de domaine websocket
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
DATABASE_URL="postgres://username:password@localhost:5432/traintrape-moi"
|
||||
JWT_SECRET="CHANGE_ME"
|
||||
API_GLOBAL_PREFIX="api"
|
||||
API_HOSTNAME="traintrape-moi.luemy.eu"
|
||||
|
@ -1,7 +1,9 @@
|
||||
import { SubscribeMessage, WebSocketGateway, WebSocketServer } from '@nestjs/websockets'
|
||||
import { Server, Socket } from 'socket.io'
|
||||
|
||||
@WebSocketGateway()
|
||||
@WebSocketGateway({
|
||||
cors: { allowedHeaders: process.env.API_HOSTNAME },
|
||||
})
|
||||
export class GeolocationsGateway {
|
||||
@WebSocketServer()
|
||||
server: Server
|
||||
|
Reference in New Issue
Block a user