简单网址缩短short

nginx 配置

location /_z/ {

            lua_socket_keepalive_timeout 30s;

            content_by_lua_file /usr/local/openresty/lualib/short/index.lua;

        }

        location /short {

                lua_socket_keepalive_timeout 30s;

                content_by_lua_file /usr/local/openresty/lualib/short/shorten.lua;

        }

修改config.lua redis 地址

转自 https://github.com/peanode/simple-url-shorten

相关推荐