replace nyone.net to nyone.app
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
These configs match the current project domains:
|
||||
|
||||
- App: `https://nyone.net`
|
||||
- App: `https://nyone.app`
|
||||
- HLS playback: `https://nyone-hls.net`
|
||||
- OBS ingest: `rtmp://nyone.net:19935`
|
||||
- OBS ingest: `rtmp://nyone.app:19935`
|
||||
|
||||
MediaMTX stays private on local ports:
|
||||
|
||||
@@ -29,14 +29,14 @@ sudo systemctl reload nginx
|
||||
|
||||
Make sure DNS points both hostnames to the server:
|
||||
|
||||
- `nyone.net`
|
||||
- `nyone.app`
|
||||
- `nyone-hls.net`
|
||||
|
||||
The Laravel `.env` should use:
|
||||
|
||||
```env
|
||||
APP_URL=https://nyone.net
|
||||
STREAMING_RTMP_INGEST_URL=rtmp://nyone.net:19935
|
||||
APP_URL=https://nyone.app
|
||||
STREAMING_RTMP_INGEST_URL=rtmp://nyone.app:19935
|
||||
STREAMING_HLS_PUBLIC_URL=https://nyone-hls.net
|
||||
MEDIAMTX_SHARED_SECRET=change-this-secret
|
||||
```
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Laravel application vhost for nyone.net.
|
||||
# Laravel application vhost for nyone.app.
|
||||
# Copy to /etc/nginx/sites-available/nyone-app.conf and symlink into sites-enabled.
|
||||
# Adjust root and fastcgi_pass for your server.
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name nyone.net;
|
||||
server_name nyone.app;
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
@@ -13,13 +13,13 @@ server {
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name nyone.net;
|
||||
server_name nyone.app;
|
||||
|
||||
root /var/www/nyone/public;
|
||||
index index.php;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/nyone.net/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/nyone.net/privkey.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/nyone.app/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/nyone.app/privkey.pem;
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# HLS reverse proxy for MediaMTX.
|
||||
# Browser origin is https://nyone.net, while playback URLs point here:
|
||||
# Browser origin is https://nyone.app, while playback URLs point here:
|
||||
# https://nyone-hls.net/<channel-slug>/index.m3u8
|
||||
|
||||
server {
|
||||
|
||||
Reference in New Issue
Block a user