Robert Rothenberg · @rrwo
215 followers · 215 posts · Server fosstodon.org

I have uploaded a new version of Catalyst::Plugin::Static::File to metacpan.org/release/RRWO/Cata

This is a lightweight plugin for serving a static file that plays nicely with X-Sendfile, ETag and ConditionalGET middleware.

This version re-adds a redundant file existence check, due to the behaviour of some testing systems.

#cpan #perl #catalyst #plack #psgi

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
668 followers · 4200 posts · Server social.sdf.org

@ncommander You jest but my $work is in the final phases of a migration of our decades-old app. (It's already running under -compose in dev, test, and )

Yes, we have goals to move to some framework, but first we have to have repeatable deployments from dev through to prod.

#kubernetes #modperl #docker #ci #psgi

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
642 followers · 3846 posts · Server social.sdf.org

@vandys @randomgeek @codinghorror As a hacker I will never besmirch as a standard or for light-use web scripts, but a lot of sins were committed with the two.

These days the done thing is to use and a framework like or in a persistent app server. You don’t have to write nearly as much code, either. plackperl.org

The middleware can even run your code as a CGI or script if you reallly want.

#perl #cgi #psgi #mojolicious #dancer2 #plack #fastcgi

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
592 followers · 3248 posts · Server social.sdf.org

On this day in 2008, the Software Foundation released mod_perl 2.0.4, compatible with the December 2007 release of v5.10: lists.apache.org/thread/shyvjn

embeds a runtime in the Apache web server, hooking it into all stages of the request and response process as well as configuration file logic. Before the advent of and in the 2010s it was the recommended platform for persistent Perl web applications without the overhead of legacy .

#apache #perl #modperl #httpd #psgi #plack #cgi #webdev #asf

Last updated 1 year ago

Robert · @rrwo
124 followers · 231 posts · Server fosstodon.org

I've released a new Plack::Middleware::Security::Simple module to metacpan.org/release/RRWO/Plac

The main change is bumping the minimum Perl version to v5.14.

This module adds simple filtering for applications, akin to modsecurity. It also has a set of common filtering rules to block common vulnerability scanners and script kiddies.

#perl #cpan #security #psgi

Last updated 2 years ago

Mark Gardner · @mjgardner
296 followers · 495 posts · Server social.sdf.org

@js @berkes @simon for hasn't been a best practice since the release of the spec and middleware in 2009. There are several very good frameworks that build on PSGI, described here for folks coming from CGI: metacpan.org/pod/CGI::Alternat

The CGI module itself was removed from the core Perl distribution with v5.20 in 2014 perldoc.perl.org/perl5200delta

For anything but the simplest single-user apps, you are permitted to point and laugh at anyone that still uses CGI.

#cgi #perl #webdev #psgi #plack

Last updated 2 years ago