HTTPS certificate

I work on mediasoup Project using nest js in server side and angular in client side and my problem now is when i run my application in localhost is working but in server no "page not secure " i don’t know how can i add the https option in main.ts for nest js please anyone can help me …
main.ts

This is not related to mediasoup at all. Please ask in a forum about NestJS.