modify local dev config & make openresty directy upload combine file to upyun
This commit is contained in:
@@ -2,13 +2,13 @@ server {
|
||||
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
|
||||
# server_name $servername;
|
||||
server_name "admin.localhost";
|
||||
listen 80;
|
||||
listen 8088;
|
||||
client_max_body_size 10M;
|
||||
|
||||
set $tmp_file_dir "/usr/local/file_upload/"; # 文件存储路径
|
||||
set $tmp_file_dir "/usr/local/file_upload"; # 文件存储路径
|
||||
set $task_server "http://127.0.0.1:8080"; # task server host
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $resty_loc "/usr/local/opt/openresty/";
|
||||
set $resty_loc "/usr/local/opt/openresty";
|
||||
set $convert "/usr/local/bin/convert";
|
||||
set $upyun_operator "moicen";
|
||||
set $upyun_password "NyJ51zRwFApY9Wo9EHJMrb8GI9YtvpVN";
|
||||
@@ -40,23 +40,23 @@ server {
|
||||
|
||||
#Upload image files
|
||||
location /api/ngx/image/upload {
|
||||
content_by_lua_file $resty_loc/resty_funcs/upload.lua;
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload.lua;
|
||||
}
|
||||
#Combine image files
|
||||
location /api/ngx/image/combine {
|
||||
content_by_lua_file $resty_loc/resty_funcs/combine.lua;
|
||||
content_by_lua_file $resty_loc/nginx/scripts/combine.lua;
|
||||
}
|
||||
#Audio file download
|
||||
location /api/ngx/audio/upload {
|
||||
content_by_lua_file $resty_loc/resty_funcs/upload_audio.lua;
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload_audio.lua;
|
||||
}
|
||||
#Audio file convert
|
||||
location /api/ngx/audio/convert {
|
||||
content_by_lua_file $resty_loc/resty_funcs/convert_audio.lua;
|
||||
content_by_lua_file $resty_loc/nginx/scripts/convert_audio.lua;
|
||||
}
|
||||
|
||||
location /api/ngx/convert/test {
|
||||
content_by_lua_file $resty_loc/resty_funcs/test.lua;
|
||||
content_by_lua_file $resty_loc/nginx/scripts/test.lua;
|
||||
}
|
||||
|
||||
location /api/v1/ws/ {
|
||||
|
||||
@@ -3,7 +3,7 @@ server {
|
||||
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
|
||||
# server_name $servername;
|
||||
server_name "music-room.localhost";
|
||||
listen 80;
|
||||
listen 8088;
|
||||
client_max_body_size 10M;
|
||||
|
||||
set $resty_loc "/usr/local/opt/openresty";
|
||||
|
||||
@@ -2,7 +2,7 @@ server {
|
||||
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
|
||||
# server_name $servername;
|
||||
server_name "ts.localhost";
|
||||
listen 80;
|
||||
listen 8088;
|
||||
client_max_body_size 10M;
|
||||
|
||||
set $task_server "http://127.0.0.1:8080"; # task server host
|
||||
|
||||
Reference in New Issue
Block a user