8000 GitHub - xboss/openice: openice
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xboss/openice

Folders and files

NameName
Last commit message
< 898A span class="text-bold">Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Openice

Open your eyes.

Prepares

Install OpenResty.

Config

Create "config.lua" in "src" directory. The contents are as follows:

local _M = {}

-- remote address is valid in local mode.
_M.remote_host = "127.0.0.1"

-- remote port is valid in local mode.
_M.remote_port = 9998

-- key used for encrypt data.
_M.key = "your password"

return _M

Add the following content to "nginx.conf":

stream {
    lua_package_path '/pathtolua/src/?.lua;';

    # if local mode.
    server {
        listen 9997;
        #lua_code_cache off;
        content_by_lua_file ../src/local.lua;
    }

    # if remote mode.
    server {
        listen 9998;
        #lua_code_cache off;
        content_by_lua_file ../src/remote.lua;
    }
}

Enjoy it.

About

openice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0