Skip to content

Commit 3f8b82e

Browse files
committed
update readme
1 parent 57a5df3 commit 3f8b82e

File tree

4 files changed

+47
-11
lines changed

4 files changed

+47
-11
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Sora AI Video Generator
88

99
## Live Demo
1010

11-
[https://sorafm.pages.dev](https://sorafm.pages.dev)
11+
[https://sorafm.trys.ai](https://sorafm.trys.ai)
1212

1313
![preview](./preview.png)
1414

1515
## Deploy with Vercel
1616

17-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm&env=POSTGRES_URL,WEB_BASE_URI&envDescription=POSTGRES_URL%20needed%20for%20the%20application&project-name=my-sora-project&repository-name=my-sora-project&redirect-url=https%3A%2F%2Fsorafm.pages.dev&demo-title=Sora.FM&demo-description=Sora%20AI%20Video%20generator&demo-url=https%3A%2F%2Fsorafm.pages.dev&demo-image=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm%2Fraw%2Fmain%2Fpreview.png)
17+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm&env=POSTGRES_URL,WEB_BASE_URI&envDescription=POSTGRES_URL%20needed%20for%20the%20application&project-name=my-sora-project&repository-name=my-sora-project&redirect-url=https%3A%2F%2Fsorafm.trys.ai&demo-title=Sora.FM&demo-description=Sora%20AI%20Video%20generator&demo-url=https%3A%2F%2Fsorafm.trys.ai&demo-image=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm%2Fraw%2Fmain%2Fpreview.png)
1818

1919
## Deploy with docker
2020

@@ -27,7 +27,7 @@ sudo docker build -f deploy/Dockerfile -t sorafm:latest .
2727
- run server
2828

2929
```shell
30-
sudo docker run -itd -p 127.0.0.1:8080:8080 --restart=always sorafm:latest
30+
sudo docker run -itd -p 127.0.0.1:8014:8080 --restart=always sorafm:latest
3131
```
3232

3333
- nginx conf
@@ -37,7 +37,7 @@ server {
3737
listen 80;
3838
3939
location / {
40-
proxy_pass http://127.0.0.1:8080/;
40+
proxy_pass http://127.0.0.1:8014/;
4141
proxy_set_header Host $http_host;
4242
proxy_set_header X-Real-IP $remote_addr;
4343
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

README_CN.md

+35-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,47 @@ Sora AI 视频生成器
66
77
## 线上演示
88

9-
[https://sora.fm](https://sora.fm)
9+
[https://sora.trys.ai](https://sora.trys.ai)
1010

1111
![preview](./preview_cn.png)
1212

1313
## 使用 Vercel 一键部署
1414

15-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm&env=POSTGRES_URL,WEB_BASE_URI&envDescription=POSTGRES_URL%20needed%20for%20the%20application&project-name=my-sora-project&repository-name=my-sora-project&redirect-url=https%3A%2F%2Fsora.fm&demo-title=Sora.FM&demo-description=Sora%20AI%20Video%20generator&demo-url=https%3A%2F%2Fsora.fm&demo-image=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm%2Fraw%2Fmain%2Fpreview.png)
15+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm&env=POSTGRES_URL,WEB_BASE_URI&envDescription=POSTGRES_URL%20needed%20for%20the%20application&project-name=my-sora-project&repository-name=my-sora-project&redirect-url=https%3A%2F%2Fsora.trys.ai&demo-title=Sora.FM&demo-description=Sora%20AI%20Video%20generator&demo-url=https%3A%2F%2Fsora.trys.ai&demo-image=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm%2Fraw%2Fmain%2Fpreview.png)
1616

17-
## 快速开始
17+
## 使用 Docker 部署
18+
19+
- 构建镜像
20+
21+
```shell
22+
sudo docker build -f deploy/Dockerfile -t sorafm:latest .
23+
```
24+
25+
- 运行服务
26+
27+
```shell
28+
sudo docker run -itd -p 127.0.0.1:8014:8080 --restart=always sorafm:latest
29+
```
30+
31+
- 配置 nginx
32+
33+
```txt
34+
server {
35+
listen 80;
36+
37+
location / {
38+
proxy_pass http://127.0.0.1:8014/;
39+
proxy_set_header Host $http_host;
40+
proxy_set_header X-Real-IP $remote_addr;
41+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
42+
proxy_set_header X-Forwarded-Proto $scheme;
43+
}
44+
45+
error_log /var/log/nginx/sorafm.error;
46+
}
47+
```
48+
49+
## 本地开发
1850

1951
1. 克隆项目
2052

app/[lang]/(default)/_components/footer/index.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function ({ lang, dict }: { lang: string; dict: any }) {
66
<div className="w-screen flex-col bg-black px-6 py-20 text-white lg:flex lg:px-10 xl:px-24">
77
<div className="lg:flex lg:flex-row lg:justify-between">
88
<div>
9-
<a href="https://sora.fm" className="inline-block max-w-full">
9+
<a href="https://sora.trys.ai" className="inline-block max-w-full">
1010
Sora.FM
1111
</a>
1212
<p className="font-inter mt-4 max-w-[350px] text-base font-light text-gray-500">
@@ -96,7 +96,7 @@ export default function ({ lang, dict }: { lang: string; dict: any }) {
9696
<div className="mb-5 mr-8 flex max-w-[200px] grow basis-[100px] flex-col space-y-5 lg:mx-10">
9797
<div className="font-inter font-medium">CREDIT TO</div>
9898
<a
99-
href="https://sora.fm"
99+
href="https://sora.trys.ai"
100100
target="_blank"
101101
className="font-inter font-light text-gray-500"
102102
>
@@ -148,7 +148,11 @@ export default function ({ lang, dict }: { lang: string; dict: any }) {
148148
<div>
149149
<p className="font-inter lg: text-center text-sm text-gray-500">
150150
© Copyright 2024.{" "}
151-
<a href="https://sora.fm" target="_blank" className="text-primary">
151+
<a
152+
href="https://sora.trys.ai"
153+
target="_blank"
154+
className="text-primary"
155+
>
152156
Sora.FM
153157
</a>{" "}
154158
All rights reserved.

deploy/nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server {
22
listen 80;
33

44
location / {
5-
proxy_pass http://127.0.0.1:8080/;
5+
proxy_pass http://127.0.0.1:8014/;
66
proxy_set_header Host $http_host;
77
proxy_set_header X-Real-IP $remote_addr;
88
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

0 commit comments

Comments
 (0)