* [PATCH 0/4] various example updates
@ 2016-02-29 0:02 7% Eric Wong
2016-02-29 0:02 6% ` [PATCH 1/4] examples/: PSGI " Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2016-02-29 0:02 UTC (permalink / raw)
To: meta
TODO: manpages for -httpd...
Eric Wong (4):
examples/: PSGI example updates
examples/cgi-webrick.rb: set CGIPathEnv, update comments
examples: various Apache-related doc updates
examples/public-inbox.psgi: relax license to GPL-3.0+
examples/README | 13 ++++++-------
examples/apache2_cgi.conf | 5 +++--
examples/apache2_perl.conf | 42 +++++++++++++++---------------------------
examples/apache2_perl_old.conf | 38 ++++++++++++++++++++++++++++++++++++++
examples/cgi-webrick.rb | 5 ++++-
examples/public-inbox.psgi | 14 ++++++++++++--
6 files changed, 78 insertions(+), 39 deletions(-)
^ permalink raw reply [relevance 7%]
* [PATCH 1/4] examples/: PSGI example updates
2016-02-29 0:02 7% [PATCH 0/4] various example updates Eric Wong
@ 2016-02-29 0:02 6% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-02-29 0:02 UTC (permalink / raw)
To: meta
Users wanting to customize their installation should know
to about the usability of STDOUT for logging.
(and we still need manpages for -nntpd and -httpd)
---
examples/public-inbox.psgi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi
index 0d11c19..f574912 100644
--- a/examples/public-inbox.psgi
+++ b/examples/public-inbox.psgi
@@ -3,6 +3,8 @@
# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
# Note: this is part of our test suite, update t/plack.t if this changes
# Usage: plackup [OPTIONS] /path/to/this/file
+# A startup command for development which monitors changes:
+# plackup -I lib -o 127.0.0.1 -R lib -r examples/public-inbox.psgi
use strict;
use warnings;
use PublicInbox::WWW;
@@ -22,6 +24,7 @@ builder {
};
$@ and warn
"Plack::Middleware::Deflater missing, bandwidth will be wasted\n";
+
# Enable to ensure redirects and Atom feed URLs are generated
# properly when running behind a reverse proxy server which
# sets X-Forwarded-For and X-Forwarded-Proto request headers.
@@ -31,6 +34,13 @@ builder {
"Plack::Middleware::ReverseProxy missing,\n",
"URL generation for redirects may be wrong if behind a reverse proxy\n";
+ # Optional: Log timing information for requests to track performance.
+ # Logging to STDOUT is recommended since public-inbox-httpd knows
+ # how to reopen it via SIGUSR1 after log rotation.
+ # enable 'AccessLog::Timed',
+ # logger => sub { syswrite(STDOUT, $_[0]) },
+ # format => '%t "%r" %>s %b %D';
+
enable 'Head';
sub { $www->call(@_) };
}
--
EW
^ permalink raw reply related [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-02-29 0:02 7% [PATCH 0/4] various example updates Eric Wong
2016-02-29 0:02 6% ` [PATCH 1/4] examples/: PSGI " Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).