add domain configurations

This commit is contained in:
2026-05-15 17:18:46 +03:30
parent 49c38f3017
commit 4ea95e3786
5 changed files with 154 additions and 6 deletions

42
deploy/nginx/README.md Normal file
View File

@@ -0,0 +1,42 @@
# Nginx Deployment Notes
These configs match the current project domains:
- App: `https://nyone.net`
- HLS playback: `https://nyone-hls.net`
- OBS ingest: `rtmp://nyone.net:1935`
MediaMTX stays private on local ports:
- RTMP ingest: `127.0.0.1:1935`
- HLS: `127.0.0.1:1988`
Install layout on Ubuntu/Debian:
```bash
sudo cp deploy/nginx/nyone-app.conf /etc/nginx/sites-available/nyone-app.conf
sudo cp deploy/nginx/nyone-hls.conf /etc/nginx/sites-available/nyone-hls.conf
sudo ln -s /etc/nginx/sites-available/nyone-app.conf /etc/nginx/sites-enabled/nyone-app.conf
sudo ln -s /etc/nginx/sites-available/nyone-hls.conf /etc/nginx/sites-enabled/nyone-hls.conf
```
Check and reload:
```bash
sudo nginx -t
sudo systemctl reload nginx
```
Make sure DNS points all three hostnames to the server:
- `nyone.net`
- `nyone-hls.net`
The Laravel `.env` should use:
```env
APP_URL=https://nyone.net
STREAMING_RTMP_INGEST_URL=rtmp://nyone.net:1935
STREAMING_HLS_PUBLIC_URL=https://nyone-hls.net
MEDIAMTX_SHARED_SECRET=change-this-secret
```