Skip to content

Commit

Permalink
Merged 0.3 from Stelios
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarni R. Einarsson committed Aug 10, 2011
1 parent 058ed25 commit ad6b8e1
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 86 deletions.
20 changes: 20 additions & 0 deletions contrib/lua/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pagekite.lua
version 0.3, 4/8/2011
by Stelios Mersinas (steliosm@gmail.com)


This is a backend client for PageKite protocol/service implemented in Lua targeting at small embedded systems that are able to run Lua.


INSTALLATION NOTES
You need to have recent Lua version installed along with the Lua-socket module. Extract the archive which will create a pagekite directory. Rename the dot-config file to .config. Edit the .config file to suit your setup (private PageKite front-end or public Pagekite front-end). Run start.sh and you should be OK. a log file named log will be crated to display the status of the client, mainly crashes and restarts. You can set the option debug = 1 in the config file to have a more detailed output about what the client is doing.


NEW FEATURES
v0.3: Supports tunnel status check using Ping requests.
The shell script will restart the service in case of a segfault (had a few during developing and testing the client).


BUG FIXES
Did you find a bug? E-mail me!

22 changes: 13 additions & 9 deletions contrib/lua/dot-config.sample
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
-- Configuration
-- NOTE: To use, please edit and rename to .config

-- Production Front End configuration
pk_site = 'USER.pagekite.me'
pk_server = '178.79.140.143'
pk_server_port = 443
pk_server_token = 'SECRET'
--
-- Pagekite Back-end configuration file
--

-- Web Server configuration
-- Front-End server
pk_site = '<Put your PageKite name here>'
pk_server = '<Put your Front-End server here>'
pk_server_port = <Front-End Connection Port>
pk_server_token = '<Your Shared Token>'

-- Web Server
proxy_web = "127.0.0.1"
proxy_web_port = 80

-- Varius settings
debug = False
debug = 0
server_reconnect = 1

Loading

0 comments on commit ad6b8e1

Please sign in to comment.