aproxy/nginx.conf

19 lines
315 B
Nginx Configuration File

init_by_lua_block {
require("aproxy.main").init()
}
server {
listen 80;
lua_code_cache off;
location / {
default_type text/html;
# must happen before proxy_pass
access_by_lua_block {
require("aproxy.main").access()
}
proxy_pass http://localhost:9999;
}
}