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
-- lulip: LuaJIT line level profiler | |
-- | |
-- Copyright (c) 2013 John Graham-Cumming | |
-- | |
-- License: http://opensource.org/licenses/MIT | |
local io_lines = io.lines | |
local io_open = io.open | |
local pairs = pairs | |
local print = print |
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
# Push 404's to the matrix handler, this means static 404's in __data are handled by matrix too | |
error_page 404 = @matrix; | |
# Redirect server error pages to the static page /50x.html | |
#error_page 500 502 503 504 /50x.html; | |
#location = /50x.html { | |
# root /usr/share/nginx/html; | |
#} | |
# Just serve data files |
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
error_log logs/error.log debug; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type application/octet-stream; | |
lua_shared_dict test_dict 1m; |
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
#push 404's to the matrix handler, this means static 404's in __data are handled by matrix too | |
error_page 404 = @matrix404; | |
#just serve data files | |
location /__data { | |
alias $matrix_root/data/public; | |
# Rewrite PHP files to matrix | |
location ~ asset_types/.*\.php$ { | |
expires off; |
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
diff --git a/lib/ledge/ledge.lua b/lib/ledge/ledge.lua | |
index 4f7d1cd..4b0cdea 100644 | |
--- a/lib/ledge/ledge.lua | |
+++ b/lib/ledge/ledge.lua | |
@@ -145,6 +145,10 @@ function _M.new(self) | |
enable_esi = false, | |
enable_collapsed_forwarding = false, | |
collapsed_forwarding_window = 60 * 1000, -- Window for collapsed requests (ms) | |
+ | |
+ upstream = nil, |
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
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I/usr/local/Cellar/pcre/8.34/include -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DLUA_DEFAULT_PATH='"/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/openresty/lualib/?.so"' -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/http -I src/http/modules -I src/os/unix -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /Users/hamish/edge/ngx_openresty-1.5.11.1rc1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 -I ../ngx_lua-0.9.5/src/api -I objs \ | |
-o objs/src/core/ngx_crypt.o \ | |
src/core/ngx_crypt.c | |
src/core/ngx_crypt.c:82:5: error: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations] | |
ngx_md5_init(&md5); | |
^ | |
src/core/ngx_md5.h:30:25: note: expanded from macro 'ngx_md5_init' | |
#define ngx_md5_init MD5_Init | |
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
error_log logs/error.log debug; | |
events { | |
worker_connections 1024; | |
} | |
worker_processes 4; | |
http { | |
default_type application/octet-stream; |
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
error_log logs/error.log debug; | |
events { | |
worker_connections 1024; | |
} | |
worker_processes 4; | |
http { | |
default_type application/octet-stream; |
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
{ | |
"title": "Edge Analytics", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "expires: <1407775286", | |
"alias": "Fresh", | |
"color": "#7EB26D", | |
"id": 0, |
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
hamish@Hamish-MBP ~/edge> curl -v -s -H'X-Forwarded-For: 123.123.123.123' -H'X-Test: foobar' localhost/test/foo | |
> GET /test/foo HTTP/1.1 | |
> User-Agent: curl/7.30.0 | |
> Host: localhost | |
> Accept: */* | |
> X-Forwarded-For: 123.123.123.123 | |
> X-Test: foobar | |
> | |
< HTTP/1.1 200 OK | |
< Server: ngx_openresty/1.4.3.6 |
OlderNewer