File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ services:
77
77
# volumes:
78
78
# - "./openresty/nginx:/usr/local/openresty/nginx/conf"
79
79
# - "./openresty/html:/usr/local/openresty/nginx/html"
80
- # - "./openresty/lua:/usr/local/openresty/lualib/user_code "
80
+ # - "./openresty/lua:/usr/local/openresty/nginx/lua "
81
81
# depends_on:
82
82
# - db
83
83
Original file line number Diff line number Diff line change 1
1
FROM openresty/openresty:stretch
2
2
3
3
COPY nginx /usr/local/openresty/nginx/conf
4
- COPY html /usr/local/openresty/nginx
5
- COPY lua /usr/local/openresty/lualib/user_code
4
+ COPY html /usr/local/openresty/nginx/html
5
+ COPY lua /usr/local/openresty/nginx/lua
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ events {
18
18
http {
19
19
20
20
# set search paths for pure Lua external libraries (';;' is the default path):
21
- lua_package_path '${prefix}../lualib/user_code /?.lua;;' ;
22
- init_by_lua_file '../lualib/user_code /init_phase.lua' ;
21
+ lua_package_path '${prefix}lua /?.lua;;' ;
22
+ init_by_lua_file 'lua /init_phase.lua' ;
23
23
24
24
# a shorter log format for development
25
25
log_format development '[$time_local ] "$request " $status $body_bytes_sent "$request_time ms"' ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set $rest_prefix "/api";
4
4
location /api/rpc/refresh_token {
5
5
if ($cookie_REFRESHTOKEN != ""){
6
6
more_set_input_headers 'Refresh-Token: $cookie_REFRESHTOKEN';
7
- rewrite_body_with_refresh_token '../lualib/user_code /internal_rest_refresh_token.lua';
7
+ rewrite_body_with_refresh_token 'lua /internal_rest_refresh_token.lua';
8
8
}
9
9
10
10
rewrite ^/api/(.*)$ /internal/api/$1;
@@ -26,9 +26,9 @@ location /internal/api/ {
26
26
internal;
27
27
default_type application/json;
28
28
29
- rewrite_by_lua_file '../lualib/user_code /internal_rest_rewrite_phase.lua';
30
- header_filter_by_lua_file '../lualib/user_code /internal_rest_header_filter_phase.lua';
31
- body_filter_by_lua_file '../lualib/user_code /internal_rest_body_filter_phase.lua';
29
+ rewrite_by_lua_file 'lua /internal_rest_rewrite_phase.lua';
30
+ header_filter_by_lua_file 'lua /internal_rest_header_filter_phase.lua';
31
+ body_filter_by_lua_file 'lua /internal_rest_body_filter_phase.lua';
32
32
33
33
proxy_set_header Accept-Encoding ""; #force postgrest not to gzip the output
34
34
proxy_set_header Connection ""; #optimise communication with upstream (keep alive)
You can’t perform that action at this time.
0 commit comments