aproxy/nginx.conf

20 lines
315 B
Nginx Configuration File
Raw Normal View History

2022-12-07 18:40:48 +00:00
init_by_lua_block {
require("aproxy.main").init()
}
server {
2022-12-06 03:36:15 +00:00
listen 80;
lua_code_cache off;
location / {
default_type text/html;
# must happen before proxy_pass
access_by_lua_block {
2022-12-07 18:40:48 +00:00
require("aproxy.main").access()
2022-12-06 03:36:15 +00:00
}
proxy_pass http://localhost:9999;
}
2022-12-07 18:40:48 +00:00
}