mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-02 04:07:33 +08:00
U readme
This commit is contained in:
parent
9ed1b74cfc
commit
c09cb9b4c5
16
README.md
16
README.md
@ -37,9 +37,8 @@ Complete installation instructions, no difficulty in getting started!
|
||||
- [Use](#Use)
|
||||
- [Preview](#Preview)
|
||||
- [Diagram](#Diagram)
|
||||
- [Reverse proxy](#Reverse proxy)
|
||||
- [Backend development instructions](#Backend development instructions)
|
||||
- [Frontend development instructions](#Frontend development instructions)
|
||||
- [Backend](#Backend)
|
||||
- [Frontend](#Frontend)
|
||||
- [Repository](#Repository)
|
||||
- [Contribute](#Contribute)
|
||||
- [License](#License)
|
||||
@ -62,20 +61,13 @@ Although most popular publishing tools are powerful, they are cumbersome to conf
|
||||
## Diagram
|
||||
![Diagram](./goploy.png)
|
||||
|
||||
## Reverse proxy
|
||||
Nginx reverse proxy remember to upgrade the ws protocol
|
||||
```nginx
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
```
|
||||
|
||||
## Backend development instructions
|
||||
## Backend
|
||||
1. Install go >= 1.13
|
||||
2. go mod required
|
||||
3. go run main.go
|
||||
4. use gin (hot reload)
|
||||
|
||||
## Frontend development instructions
|
||||
## Frontend
|
||||
1. cd web
|
||||
2. vi .env.development
|
||||
3. npm run dev
|
||||
|
@ -37,7 +37,6 @@
|
||||
- [使用](#使用)
|
||||
- [预览](#预览)
|
||||
- [原理图](#原理图)
|
||||
- [反向代理](#反向代理)
|
||||
- [后端开发说明](#后端开发说明)
|
||||
- [前端开发说明](#前端开发说明)
|
||||
- [相关仓库](#相关仓库)
|
||||
@ -62,13 +61,6 @@
|
||||
## 原理图
|
||||
![原理图](./goploy.png)
|
||||
|
||||
## 反向代理
|
||||
nginx反向代理记得升级ws协议
|
||||
```nginx
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
```
|
||||
|
||||
## 后端开发说明
|
||||
1. 安装go,必须是1.13以上
|
||||
2. 项目使用go mod管理
|
||||
|
Loading…
Reference in New Issue
Block a user