http {
lua_shared_dict ctrs 2m;
}
server {
listen 80;
server_name singlelua.app;
root /Users/leandre/Works/Codingx;
lua_code_cache off;
location / {
default_type text/html;
content_by_lua_file $document_root/app.lua;
}
location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
root /Users/leandre/Works/Codingx/public;
}
location ~* "^/favicon\.ico" {
expires 30d;
root /Users/leandre/Works/Codingx/public;
}
}
26597925 / singlelua Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nly/singlelua
License: Apache License 2.0