Add lua-resty-core and change upload-path

This commit is contained in:
2019-06-20 15:38:17 +02:00
parent 5f024981b7
commit aa905bff2d
3 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -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' "*" ;