# Seeking Guidance on Creating a .env File for mediasoup Configuration

**URL:** <https://mediasoup.discourse.group/t/seeking-guidance-on-creating-a-env-file-for-mediasoup-configuration/5456>\
**Category:** mediasoup-demo\
**Created:** [August 29, 2023, 10:37am UTC](https://mediasoup.discourse.group/t/seeking-guidance-on-creating-a-env-file-for-mediasoup-configuration/5456 "2023-08-29T10:37:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MuhammadLuqman](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/muhammadluqman/32/2302_2.png) [@MuhammadLuqman](https://mediasoup.discourse.group/u/MuhammadLuqman)\
**Post date:** [August 29, 2023, 10:37am UTC](https://mediasoup.discourse.group/t/seeking-guidance-on-creating-a-env-file-for-mediasoup-configuration/5456/1 "2023-08-29T10:37:29Z")

</div>

Hello everyone,

I hope you’re doing well. I’m currently working with mediasoup and I’m in the process of setting up my environment. I’ve noticed references to the `process.env.MEDIASOUP` variable, which seems to be related to configuration. However, I haven’t been able to find a sample `.env` file or clear instructions on how to structure it for mediasoup.

Could someone kindly provide me with a sample `.env` file or guide me on how to properly create one for mediasoup? I’m aiming to better understand the required format and variables that need to be set. Your assistance will be greatly appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![zaidiqbal](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/zaidiqbal/32/1498_2.png) [@zaidiqbal](https://mediasoup.discourse.group/u/zaidiqbal)\
**Post date:** [August 29, 2023, 11:01am UTC](https://mediasoup.discourse.group/t/seeking-guidance-on-creating-a-env-file-for-mediasoup-configuration/5456/2 "2023-08-29T11:01:08Z")

</div>

> **[How to Use Node Environment Variables with a DotEnv File for Node.js and npm](https://www.freecodecamp.org/news/how-to-use-node-environment-variables-with-a-dotenv-file-for-node-js-and-npm/)**
>
> Environment variables are variables that are set outside of a program, often through a cloud provider or operating system. In Node, environment variables are a great way to securely and conveniently configure things that don't change often, like...

Or you can make a simple js module and define the things in there and require that in node server.

By the way this is not related to mediasoup.

If you are specifically asking for mediasoup demo then it is mentioned in there in github repo:

 ![image](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/d/d74ba93b90989f7b067bcc613c11c81c6aed32f4.png)
