add upyun_download
This commit is contained in:
@@ -95,4 +95,8 @@ server {
|
||||
location /api/v1/uc/ {
|
||||
proxy_pass http://127.0.0.1:3000/api/v1/uc/;
|
||||
}
|
||||
|
||||
location /api/ngx/upyun_download {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upyun_download.lua;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
server {
|
||||
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
|
||||
# server_name $servername;
|
||||
server_name "test.localhost";
|
||||
server_name "test2.localhost";
|
||||
listen 8088;
|
||||
|
||||
set $resty_loc "/usr/local/opt/openresty";
|
||||
|
||||
Reference in New Issue
Block a user