Add lua-resty-core and change upload-path
This commit is contained in:
+4
-1
@@ -9,6 +9,9 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
lua_load_resty_core off;
|
||||
lua_package_path "/tmp/lua-resty-core/lib/?.lua;;";
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
client_max_body_size 0;
|
||||
@@ -19,7 +22,7 @@ http {
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ~* ^/uploads {
|
||||
location ~* ^/ {
|
||||
if ($request_method = 'OPTIONS') {
|
||||
# Tell client that this pre-flight info is valid for 20 days
|
||||
add_header 'Access-Control-Allow-Origin' "*" ;
|
||||
|
||||
Reference in New Issue
Block a user