From 995eefdf9f09f1a4621e3aab0184c5ae2787ca0c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 May 2019 02:30:29 +0000 Subject: proxy_pass: document as a public API Might as well... this has been in use at YHBT.net for ~4 years at this point. And given nginx has new corporate overlords, maybe a decidedly non-enterprisey alternative is worth "marketing" :P Previous discussion from 2016: https://YHBT.net/yahns-public/20160220081619.GA10850@dcvr.yhbt.net/ --- examples/proxy_pass.ru | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/proxy_pass.ru (limited to 'examples/proxy_pass.ru') diff --git a/examples/proxy_pass.ru b/examples/proxy_pass.ru new file mode 100644 index 0000000..63ee6d9 --- /dev/null +++ b/examples/proxy_pass.ru @@ -0,0 +1,11 @@ +# To the extent possible under law, Eric Wong has waived all copyright and +# related or neighboring rights to this example. +# +# See examples/https_proxy_pass.conf.rb for the complementary rackup file +# + +# optionally, intercept static requests with Rack::Static middleware: +# use Rack::Static, root: '/path/to/public', gzip: true + +require 'yahns/proxy_pass' +run Yahns::ProxyPass.new('http://127.0.0.1:6081') -- cgit v1.2.3-24-ge0c7