Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
barcode/etc/lighttpd-barcode.conf
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
128 lines (99 sloc)
3.07 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var.srvname = "barcode" | |
var.project = "/project/barcode/" # trailing slash | |
server.modules = ( "mod_access" ) | |
server.modules += ( "mod_cgi" ) | |
server.modules += ( "mod_accesslog" ) | |
server.modules += ( "mod_websocket" ) | |
# server.modules += ("mod_dirlisting" ) | |
server.port = 5555 | |
#server.bind = | |
server.dir-listing = "enable" | |
dir-listing.activate = "enable" | |
server.pid-file = "/dev/shm/lighttpd-" + var.srvname + ".pid" | |
server.errorlog = var.project + "log/error.log" | |
accesslog.filename = var.project + "log/access.log" | |
server.document-root = "/project/barcode/html" | |
#url.rewrite = ( "^/$" => "/" ) | |
#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" ) | |
index-file.names = ( "index.sh", "index.html" ) | |
mimetype.assign = ( | |
".png" => "image/png", | |
".html" => "text/html", | |
".txt" => "text/plain", | |
# default mime type | |
"" => "application/octet-stream", | |
) | |
server.tag = "lighttpd mariux " + var.srvname | |
url.access-deny = ( "~", ".inc" ) | |
$HTTP["url"] =~ "\.pdf$" { | |
server.range-requests = "disable" | |
} | |
static-file.exclude-extensions = ( ".sh", ".php", ".pl", ".fcgi", ".cgi" ) | |
server.username = "nobody" | |
server.groupname = "nogroup" | |
cgi.assign = ( ".pl" => "/usr/bin/perl" ) | |
cgi.assign += ( "code" => "/usr/bin/perl" ) | |
cgi.assign += ( "show" => "/usr/bin/perl" ) | |
websocket.server = ( | |
"/chat" => ( | |
"host" => "141.14.16.249", | |
"port" => "9000" | |
), | |
# WebSocket-TCP Proxy | |
# | |
"/ws" => ( | |
"host" => "141.14.16.249", | |
"port" => 7681, | |
"proto" => "tcp" | |
), | |
# WebSocket-TCP Proxy | |
# $ ruby bin/echo.rb | |
"^\/tcp_proxy\/*" => ( | |
"host" => "141.14.16.249", | |
"port" => 7681, | |
"proto" => "tcp" | |
), | |
# WebSocket Proxies | |
# for socket.io | |
# $ node bin/echo.js | |
"^\/socket.io\/" => ( | |
"host" => "141.14.16.249", | |
"port" => 7681, | |
"proto" => "websocket" | |
), | |
# for ipython notebook | |
# $ ipython profile create default | |
# And rewrite ~/.ipython/profile_default/ipython_notebook_config.py | |
# see <URL: http://ipython.org/ipython-doc/dev/interactive/public_server.html | |
# #running-with-a-different-url-prefix> | |
# $ ipython notebook --pylab inline --no-browser | |
"^\/ipython\/kernels\/.+" => ( | |
"host" => "141.14.16.249", | |
"port" => 8888, | |
"proto" => "websocket" | |
), | |
# for mosquitto | |
# refer to <URL: https://github.com/nori0428/mod_websocket/issues/28> | |
"^\/mqtt\/*" => ( | |
"host" => "141.14.16.249", | |
"port" => 1883, | |
"proto" => "tcp", | |
"type" => "binary", | |
"subproto" => "mqttv3.1" | |
) | |
) | |
# If U want to handle timeout, define websocket.timeout.(sec) | |
# websocket.timeout = 60 | |
# | |
# If U want to send PING frame defined at after IETF-08 spec., | |
# define websocket.ping_interval.(sec) | |
# websocket.ping_interval = 5 | |
# | |
# If something wrong, define websocket.debug. | |
# logs are written into server.errorlog | |
# 0: no log | |
# 1: LOG_ERROR | |
# 2: LOG_WARN | |
# 3: LOG_INFO | |
# 4: LOG_DEBUG | |
websocket.debug = 4 | |