[mirotalksfu] - Improve config.js.template, add .env.template, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2025-03-29 00:54:08 +01:00
الأصل 531b1342c5
التزام e3511513bc
19 ملفات معدلة مع 1594 إضافات و834 حذوفات

عرض الملف

@@ -204,12 +204,14 @@ $ git clone https://github.com/miroslavpejic85/mirotalksfu.git
$ cd mirotalksfu
# Copy app/src/config.template.js in app/src/config.js and edit it if needed
$ cp app/src/config.template.js app/src/config.js
# Copy .env.template to .env and edit it if needed
$ cp .env.template .env
# Install dependencies - be patient, the first time will take a few minutes, in the meantime have a good coffee ;)
$ npm install
# Start the server
$ npm start
# If you want to start the server on a different port than the default use an env var
$ PORT=3011 npm start
$ SERVER_LISTEN_PORT=3011 npm start
```
- Open [https://localhost:3010](https://localhost:3010) or `:3011` if the default port has been changed in your browser.
@@ -239,10 +241,22 @@ $ git clone https://github.com/miroslavpejic85/mirotalksfu.git
$ cd mirotalksfu
# Copy app/src/config.template.js in app/src/config.js IMPORTANT (edit it according to your needs)
$ cp app/src/config.template.js app/src/config.js
# Copy .env.template to .env and edit it if needed
$ cp .env.template .env
# Copy docker-compose.template.yml in docker-compose.yml and edit it if needed
$ cp docker-compose.template.yml docker-compose.yml
# (Optional) Get official image from Docker Hub
$ docker-compose pull
```
Make sure to load the `.env` file in your `docker-compose.yml` by adding:
```yaml
env_file:
- .env
```
```bash
# Create and start containers
$ docker-compose up # -d
# To stop and remove resources