fix README.md format

This commit is contained in:
李勇
2021-08-08 00:13:19 +08:00
parent 106e01cf0e
commit fbb21bb749
+11 -3
View File
@@ -39,6 +39,7 @@ lua_package_path "/usr/local/openresty/resty_funcs/?.lua;;";
<h2 id="1">1.图片上传</h2>
- music-room配置
```nginx configuration
# 子域名配置文件路径
# /usr/local/openresty/nginx/conf.d/music-room.conf
@@ -57,6 +58,7 @@ lua_package_path "/usr/local/openresty/resty_funcs/?.lua;;";
- 添加lua脚本
将file_upload文件夹下的upload_image.lua 拷贝到如下路径
```bash
/usr/local/openresty/resty_funcs
.
@@ -64,12 +66,14 @@ lua_package_path "/usr/local/openresty/resty_funcs/?.lua;;";
```
- 测试curl命令
```bash
curl -v -F 'up_load_json=@./test_files/tile-0.jpg' -F 'up_load_json=@./test_files/tile-1.jpg' -F 'up_load_json=@./test_files/tile-2.jpg' https://music-room.alchemy-studio.cn/upload_image
```
⚠️ **./test_files/test0.jpg ./test_files/test1.jpg ./test_files/test2.jpg 为三张上传拼接的图片的路径和文件名**
```bash
```bash
* Trying 152.136.103.69...
* TCP_NODELAY set
* Connected to music-room.alchemy-studio.cn (152.136.103.69) port 443 (#0)
@@ -164,9 +168,10 @@ curl -v -F 'up_load_json=@./test_files/tile-0.jpg' -F 'up_load_json=@./test_file
* Connection #0 to host music-room.alchemy-studio.cn left intact
* Closing connection 0
```
```
- 查看上传文件和拼接文件
```bash
$ pwd
/file_upload
@@ -184,7 +189,9 @@ $ ls -l
```
<h2 id="2">2.图片拼接</h2>
- music-room配置
- music-room配置
```nginx configuration
# 子域名配置文件路径
# /usr/local/openresty/nginx/conf.d/music-room.conf
@@ -203,6 +210,7 @@ location /image_append {
- 添加lua脚本
将file_upload文件夹下的image_append拷贝到如下路径
```bash
/usr/local/openresty/resty_funcs
.