forked from novicezk/midjourney-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhukai
committed
Jun 11, 2023
1 parent
fc4adb5
commit 9e538e6
Showing
13 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
## Railway 部署教程 | ||
|
||
### 0. Railway是什么 | ||
Railway是一个提供了弹性部署方案的平台,基于Dockerfile可以方便地一键部署。而且服务就架设在海外,方便了Midjourney的调用。 | ||
|
||
### 1. fork仓库 | ||
理论上直接用公开仓库的网址就可以,但是实测发现,如果直接用原仓库而不是自己的仓库,Railway可能会识别不到Dockerfile。 | ||
|
||
### 2. Railway绑定Github | ||
|
||
可以直接用Github账号登录Railway | ||
|
||
新建一个Project,然后添加Railway对Github刚才fork的仓库的权限 | ||
|
||
![image-20230610210512637](./railway1.png) | ||
|
||
### 3. Start the Service | ||
|
||
进入刚才的Project,它应该已经在自动deploy了。这里先别管它的deploy,我们还需要配置变量。 | ||
|
||
要配置bot-token,channel-id等容器要求的变量,注意这里还需要配置`PORT`为8080,和docker内设置的一致。 | ||
|
||
配置之后会自动redeploy | ||
|
||
![image-20230610211543718](./railway2.png) | ||
|
||
### 4. Enjoy | ||
|
||
基于docker启动的应该没什么问题,然后在这里配置网址,之后就可以通过这个网址访问啦。比如 | ||
|
||
`https://midjourney-proxy-***.app/mj` | ||
|
||
![image-20230610211055608](./railway3.png) | ||
### 1. Railway是什么 | ||
Railway是一个提供了弹性部署方案的平台,支持免费部署。而且服务就架设在海外,方便了Midjourney的调用。 | ||
|
||
### 2. Fork本仓库 | ||
### 3. Railway使用github账号登录 | ||
进入 [railway官网](https://railway.app) 选择 `Login` -> `Github`,登录github账号 | ||
|
||
### 4. [New Project](https://railway.app/new) 添加对fork仓库的授权 | ||
![railway_img_1](./railway_img_1.png) | ||
![railway_img_2](./railway_img_2.png) | ||
![railway_img_3](./railway_img_3.png) | ||
|
||
### 5. 选择该fork仓库,新建项目,设置环境变量 | ||
![railway_img_4](./railway_img_4.png) | ||
![railway_img_5](./railway_img_5.png) | ||
![railway_img_6](./railway_img_6.png) | ||
![railway_img_7](./railway_img_7.png) | ||
此处配置项参考 [Wiki / 配置项](https://github.com/novicezk/midjourney-proxy/wiki/%E9%85%8D%E7%BD%AE%E9%A1%B9) ,建议配置api密钥启用鉴权,接口调用时需添加请求头 `mj-api-secret` | ||
|
||
### 6. 启动服务 | ||
进入刚才的Project,它应该已经在自动部署了。后续更新配置之后会自动重新部署 | ||
![railway_img_8](./railway_img_8.png) | ||
|
||
### 7. 开始使用 | ||
等待部署成功后,配置网址 | ||
![railway_img_9](./railway_img_9.png) | ||
|
||
访问 `https://midjourney-proxy-***.app/mj` |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes