diff options
author | Eric Wong <e@80x24.org> | 2022-08-11 20:13:08 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-11 21:58:05 +0000 |
commit | 21dd4cc5672ae3ead8a513d3be926722ddb80879 (patch) | |
tree | 6e91229e556a95b1428dcf733be53bd4a4eb4861 /examples/cgi-webrick.rb | |
parent | cb4b682a91662d877a36e9fc52090852fae35fa2 (diff) | |
download | public-inbox-21dd4cc5672ae3ead8a513d3be926722ddb80879.tar.gz |
Having old, unmaintained docs for other HTTP servers is likely harmful at this point. public-inbox-httpd is specifically designed to handle git repos on slow storage and stream giant mbox.gz files fairly to slow clients.
Diffstat (limited to 'examples/cgi-webrick.rb')
-rw-r--r-- | examples/cgi-webrick.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/cgi-webrick.rb b/examples/cgi-webrick.rb deleted file mode 100644 index 5554a012..00000000 --- a/examples/cgi-webrick.rb +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env ruby -# Sample configuration using WEBrick, mainly intended dev/testing -# for folks familiar with Ruby and not various Perl webserver -# deployment options. For those familiar with Perl web servers, -# plackup(1) is recommended for development and public-inbox-httpd(1) -# is our production deployment server. -require 'webrick' -require 'logger' -options = { - :BindAddress => '127.0.0.1', - :Port => 8080, - :Logger => Logger.new($stderr), - :CGIPathEnv => ENV['PATH'], # need to run 'git' commands - :AccessLog => [ - [ Logger.new($stdout), WEBrick::AccessLog::COMBINED_LOG_FORMAT ] - ], -} -server = WEBrick::HTTPServer.new(options) -server.mount("/", - WEBrick::HTTPServlet::CGIHandler, - "/var/www/cgi-bin/public-inbox.cgi") -['INT', 'TERM'].each do |signal| - trap(signal) {exit!(0)} -end -server.start |