Skip to content

nly/SingleLua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SingleLua Framework

add this to nginx http block:

http {
    # your path to framework
    lua_package_path '/Users/leandre/Works/SingleLua/?.lua;/Users/leandre/Works/SingleLua/app/?.lua;/Users/leandre/Works/SingleLua/app/library/?.lua;;';
}

add a site vhost:

server {
    listen 80;
    server_name singlelua.app;
    root /Users/leandre/Works/SingleLua;

    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/SingleLua/public;
    }

    location ~* "^/favicon\.ico" {
       expires 30d;
       root /Users/leandre/Works/SingleLua/public;
    }
}

/etc/hosts

127.0.0.1 singlelua.app

About

Simple but powerful ngx_lua web framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages