Files
netris-nestri/apps/docs/content/3.nestri-relay/3.deploy-moq.md
Victor Pahuus Petersen 390ee2ac0f Documentation for Nestri (#116)
I have made documentation for Nestri, so everybody easy can find
instructions to get started. It will also make it easier for people to
help contribute to the documentation.

The documentation is built with Nuxt3, [Docus
](https://github.com/nuxt-themes) which uses Nuxt Content.

![image](https://github.com/user-attachments/assets/b30258c3-2267-4710-b8f4-48145e7c98d0)

![image](https://github.com/user-attachments/assets/6ccad52e-b6e1-4c8d-9c0c-bc4fae0227f1)
2024-09-27 01:22:53 +03:00

1.4 KiB

Installation Steps

Step 1: Clone the Repository

Clone the kixelated/moq-rs repository to your local machine:

git clone https://github.com/kixelated/moq-rs moq

Step 2: Verify Port Availability

Check if port 443 is already in use on your server:

sudo netstat -tulpn | grep ':443' | grep LISTEN

or

sudo lsof -i -P -n | grep LISTEN | grep 443

If you find any processes using port 443, consider terminating them.

Step 3: Configure Ports

Navigate to the cloned directory and edit the Docker compose file to use port 443:

cd moq
vim docker-compose.yml

Change the ports section from lines 34 to 35 to:

ports:
  - "443:443"
  - "443:443/udp"

Step 4: Prepare Certificates

Copy your generated certificates into the moq/dev directory and rename them:

cp cert.pem moq/dev/localhost.crt
cp key.pem moq/dev/localhost.key

Step 5: Start Docker Instances

Ensure you are in the root directory of the moq project, then start the Docker containers:

docker compose up -d

Configure your DNS settings to connect your server's IP address to your domain:

Record Type: A
Subdomain: relay.fst.so
IP Address: xx.xxx.xx.xxx

Congratulations, your MoQ server is now set up! You can verify its functionality by using the MoQ Checker.