Skip to content

Commit

Permalink
Update Oryx.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Apr 8, 2024
1 parent 3dace6d commit 176e1f9
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ docker run --restart always -d -it --name oryx -v $HOME/data:/data \
ossrs/oryx:5
```

Then you can open [http://localhost:2022](http://localhost:2022) to use Oryx.
Then you can open [http://localhost](http://localhost) to use Oryx.

For more details, please refer to [Oryx Docker](https://github.com/ossrs/oryx#usage).

Expand All @@ -54,11 +54,11 @@ Strongly recommend running Oryx with HELM:
```bash
helm repo add srs http://helm.ossrs.io/stable
helm install srs srs/oryx --set persistence.path=$HOME/data \
--set service.http=2022 --set service.https=2443 --set service.rtmp=1935 \
--set service.http=80 --set service.https=443 --set service.rtmp=1935 \
--set service.rtc=8000 --set service.srt=10080
```

Then you can open [http://localhost:2022](http://localhost:2022) to use Oryx.
Then you can open [http://localhost](http://localhost) to use Oryx.

### Script

Expand Down Expand Up @@ -96,7 +96,7 @@ However, Oryx provides a more powerful and feature-rich experience for end users
eliminating the need to write any code. Users can directly utilize Oryx for your
media services needs.

| Comparison | Oryx | SRS | Notes |
| Comparison | Oryx | SRS | Notes |
|----------------|-------------------|---------------|--------------------------------------------------------------------|
| License | AGPL-3.0-or-later | MIT | SRS is licenced under MIT, Oryx is AGPL-3.0-or-later. |
| Live Streaming | Yes | Yes | Both support RTMP, HLS, and HTTP-FLV protocols. |
Expand Down Expand Up @@ -192,13 +192,13 @@ You can click the button on the web to request a HTTP API, you can also use the
HTTP API. Please follow the instructions on the web, for example, use curl to request the HTTP API:

```bash
curl http://localhost:2022/terraform/v1/mgmt/versions
curl http://localhost/terraform/v1/mgmt/versions
```

Or with the Bearer token:

```bash
curl http://localhost:2022/terraform/v1/hooks/srs/secret/query \
curl http://localhost/terraform/v1/hooks/srs/secret/query \
-X POST -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json' --data '{}'
```
Expand All @@ -214,13 +214,13 @@ HTTP API. To identify the requests and responses for each API, open Google Chrom
Oryx also proxy the [SRS HTTP API](./http-api.md), which prefix with `/api/v1/` such as:

```bash
curl http://localhost:2022/api/v1/versions
curl http://localhost/api/v1/versions
```

Or with the Bearer token:

```bash
curl http://localhost:2022/api/v1/vhosts/ \
curl http://localhost/api/v1/vhosts/ \
-X GET -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json'
```
Expand Down Expand Up @@ -374,7 +374,7 @@ Request:
"uuid": "824b96f9-8d51-4046-ba1e-a9aec7d57c95",
"artifact_code": 0,
"artifact_path": "/data/record/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4",
"artifact_url": "http://localhost:2022/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
"artifact_url": "http://localhost/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
}

Response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ SaaS做直播的好处是不用了解直播的细节,直接就能把直播做
* FLV流:`http://your-server-ip/live/livestream.flv`
* HLS流:`http://your-server-ip/live/livestream.m3u8`

> Note: 若自己部署SRS,则HTTP端口默认是8080,需要在地址中加上,比如 `http://your-server-ip:8080/live/livestream.flv`
> Note: 若自己部署SRS,则HTTP端口默认是8080,需要在地址中加上,比如 `http://your-server-ip/live/livestream.flv`
用开源方案搭建直播,比较容易能看到整个直播的链路,如下图所示:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ docker run --restart always -d -it --name oryx -v $HOME/data:/data \
registry.cn-hangzhou.aliyuncs.com/ossrs/oryx:5
```

请打开页面[http://localhost:2022](http://localhost:2022)开始使用Oryx。
请打开页面[http://localhost](http://localhost)开始使用Oryx。

关于使用说明,请参考 [Oryx Docker](https://github.com/ossrs/oryx#usage)

Expand All @@ -51,11 +51,11 @@ docker run --restart always -d -it --name oryx -v $HOME/data:/data \
```bash
helm repo add srs http://helm.ossrs.io/stable
helm install srs srs/oryx --set persistence.path=$HOME/data \
--set service.http=2022 --set service.https=2443 --set service.rtmp=1935 \
--set service.http=80 --set service.https=443 --set service.rtmp=1935 \
--set service.rtc=8000 --set service.srt=10080
```

请打开页面[http://localhost:2022](http://localhost:2022)开始使用Oryx。
请打开页面[http://localhost](http://localhost)开始使用Oryx。

### BT

Expand Down Expand Up @@ -176,13 +176,13 @@ Oryx支持对实时流进行转码,以降低比特率、节省带宽和成本
使用curl请求HTTP API:

```bash
curl http://localhost:2022/terraform/v1/mgmt/versions
curl http://localhost/terraform/v1/mgmt/versions
```

或使用Bearer鉴权:

```bash
curl http://localhost:2022/terraform/v1/hooks/srs/secret/query \
curl http://localhost/terraform/v1/hooks/srs/secret/query \
-X POST -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json' --data '{}'
```
Expand All @@ -197,13 +197,13 @@ curl http://localhost:2022/terraform/v1/hooks/srs/secret/query \
Oryx还代理了[SRS HTTP API](./http-api.md),前缀为`/api/v1/`,例如:

```bash
curl http://localhost:2022/api/v1/versions
curl http://localhost/api/v1/versions
```

或使用Bearer鉴权:

```bash
curl http://localhost:2022/api/v1/vhosts/ \
curl http://localhost/api/v1/vhosts/ \
-X GET -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json'
```
Expand Down Expand Up @@ -354,7 +354,7 @@ Request:
"uuid": "824b96f9-8d51-4046-ba1e-a9aec7d57c95",
"artifact_code": 0,
"artifact_path": "/data/record/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4",
"artifact_url": "http://localhost:2022/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
"artifact_url": "http://localhost/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
}

Response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ docker run --restart always -d -it --name oryx -v $HOME/data:/data \
registry.cn-hangzhou.aliyuncs.com/ossrs/oryx:5
```

请打开页面[http://localhost:2022](http://localhost:2022)开始使用Oryx。
请打开页面[http://localhost](http://localhost)开始使用Oryx。

关于使用说明,请参考 [Oryx Docker](https://github.com/ossrs/oryx#usage)

Expand All @@ -51,11 +51,11 @@ docker run --restart always -d -it --name oryx -v $HOME/data:/data \
```bash
helm repo add srs http://helm.ossrs.io/stable
helm install srs srs/oryx --set persistence.path=$HOME/data \
--set service.http=2022 --set service.https=2443 --set service.rtmp=1935 \
--set service.http=80 --set service.https=443 --set service.rtmp=1935 \
--set service.rtc=8000 --set service.srt=10080
```

请打开页面[http://localhost:2022](http://localhost:2022)开始使用Oryx。
请打开页面[http://localhost](http://localhost)开始使用Oryx。

### BT

Expand Down Expand Up @@ -177,13 +177,13 @@ Oryx支持对实时流进行转码,以降低比特率、节省带宽和成本
使用curl请求HTTP API:

```bash
curl http://localhost:2022/terraform/v1/mgmt/versions
curl http://localhost/terraform/v1/mgmt/versions
```

或使用Bearer鉴权:

```bash
curl http://localhost:2022/terraform/v1/hooks/srs/secret/query \
curl http://localhost/terraform/v1/hooks/srs/secret/query \
-X POST -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json' --data '{}'
```
Expand All @@ -198,13 +198,13 @@ curl http://localhost:2022/terraform/v1/hooks/srs/secret/query \
Oryx还代理了[SRS HTTP API](./http-api.md),前缀为`/api/v1/`,例如:

```bash
curl http://localhost:2022/api/v1/versions
curl http://localhost/api/v1/versions
```

或使用Bearer鉴权:

```bash
curl http://localhost:2022/api/v1/vhosts/ \
curl http://localhost/api/v1/vhosts/ \
-X GET -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json'
```
Expand Down Expand Up @@ -355,7 +355,7 @@ Request:
"uuid": "824b96f9-8d51-4046-ba1e-a9aec7d57c95",
"artifact_code": 0,
"artifact_path": "/data/record/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4",
"artifact_url": "http://localhost:2022/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
"artifact_url": "http://localhost/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
}

Response:
Expand Down
2 changes: 1 addition & 1 deletion i18n/zh-cn/docusaurus-plugin-content-pages/faq-oryx.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ docker run --restart always -d -it --name oryx0 -it -v $HOME/data0:/data \
registry.cn-hangzhou.aliyuncs.com/ossrs/oryx:5
```

然后打开 [http://localhost:2022](http://localhost:2022) 即可登录。
然后打开 [http://localhost](http://localhost) 即可登录。

```bash
docker run --restart always -d -it --name oryx1 -it -v $HOME/data1:/data \
Expand Down
2 changes: 1 addition & 1 deletion src/pages/faq-oryx.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ docker run --restart always -d -it --name oryx0 -it -v $HOME/data0:/data \
ossrs/oryx:5
```

Then, open [http://localhost:2022](http://localhost:2022) to log in to the backend.
Then, open [http://localhost](http://localhost) to log in to the backend.

```bash
docker run --restart always -d -it --name oryx1 -it -v $HOME/data1:/data \
Expand Down
18 changes: 9 additions & 9 deletions versioned_docs/version-5.0/doc/getting-started-oryx.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ docker run --restart always -d -it --name oryx -v $HOME/data:/data \
ossrs/oryx:5
```

Then you can open [http://localhost:2022](http://localhost:2022) to use Oryx.
Then you can open [http://localhost](http://localhost) to use Oryx.

For more details, please refer to [Oryx Docker](https://github.com/ossrs/oryx#usage).

Expand All @@ -54,11 +54,11 @@ Strongly recommend running Oryx with HELM:
```bash
helm repo add srs http://helm.ossrs.io/stable
helm install srs srs/oryx --set persistence.path=$HOME/data \
--set service.http=2022 --set service.https=2443 --set service.rtmp=1935 \
--set service.http=80 --set service.https=443 --set service.rtmp=1935 \
--set service.rtc=8000 --set service.srt=10080
```

Then you can open [http://localhost:2022](http://localhost:2022) to use Oryx.
Then you can open [http://localhost](http://localhost) to use Oryx.

### Script

Expand Down Expand Up @@ -91,7 +91,7 @@ However, Oryx provides a more powerful and feature-rich experience for end users
eliminating the need to write any code. Users can directly utilize Oryx for your
media services needs.

| Comparison | Oryx | SRS | Notes |
| Comparison | Oryx | SRS | Notes |
|----------------|-------------------|---------------|--------------------------------------------------------------------|
| License | AGPL-3.0-or-later | MIT | SRS is licenced under MIT, Oryx is AGPL-3.0-or-later. |
| Live Streaming | Yes | Yes | Both support RTMP, HLS, and HTTP-FLV protocols. |
Expand Down Expand Up @@ -187,13 +187,13 @@ You can click the button on the web to request a HTTP API, you can also use the
HTTP API. Please follow the instructions on the web, for example, use curl to request the HTTP API:

```bash
curl http://localhost:2022/terraform/v1/mgmt/versions
curl http://localhost/terraform/v1/mgmt/versions
```

Or with the Bearer token:

```bash
curl http://localhost:2022/terraform/v1/hooks/srs/secret/query \
curl http://localhost/terraform/v1/hooks/srs/secret/query \
-X POST -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json' --data '{}'
```
Expand All @@ -209,13 +209,13 @@ HTTP API. To identify the requests and responses for each API, open Google Chrom
Oryx also proxy the [SRS HTTP API](./http-api.md), which prefix with `/api/v1/` such as:

```bash
curl http://localhost:2022/api/v1/versions
curl http://localhost/api/v1/versions
```

Or with the Bearer token:

```bash
curl http://localhost:2022/api/v1/vhosts/ \
curl http://localhost/api/v1/vhosts/ \
-X GET -H 'Authorization: Bearer xxxxxx' \
-H 'Content-Type: application/json'
```
Expand Down Expand Up @@ -369,7 +369,7 @@ Request:
"uuid": "824b96f9-8d51-4046-ba1e-a9aec7d57c95",
"artifact_code": 0,
"artifact_path": "/data/record/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4",
"artifact_url": "http://localhost:2022/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
"artifact_url": "http://localhost/terraform/v1/hooks/record/hls/824b96f9-8d51-4046-ba1e-a9aec7d57c95/index.mp4"
}

Response:
Expand Down

0 comments on commit 176e1f9

Please sign in to comment.