add upyun_download

This commit is contained in:
2022-08-24 01:05:21 +08:00
parent 00d088c13f
commit 3abd794fd4
4 changed files with 62 additions and 2 deletions
+4
View File
@@ -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 -1
View File
@@ -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";