I have uploaded a new version of Catalyst::Plugin::Static::File to #CPAN https://metacpan.org/release/RRWO/Catalyst-Plugin-Static-File-v0.2.1
This is a lightweight #Perl #Catalyst plugin for serving a static file that plays nicely with #Plack #PSGI 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
@ncommander You jest but my $work is in the final phases of a #Kubernetes migration of our decades-old #ModPerl app. (It's already running under #docker-compose in dev, test, and #CI)
Yes, we have goals to move to some #PSGI framework, but first we have to have repeatable deployments from dev through to prod.
#kubernetes #modperl #docker #ci #psgi
@vandys @randomgeek @codinghorror As a #Perl hacker I will never besmirch #CGI 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 #PSGI and a framework like #Mojolicious or #Dancer2 in a persistent app server. You don’t have to write nearly as much code, either. https://plackperl.org
The #Plack middleware can even run your code as a CGI or #FastCGI script if you reallly want.
#perl #cgi #psgi #mojolicious #dancer2 #plack #fastcgi
On this day in 2008, the #Apache Software Foundation released mod_perl 2.0.4, compatible with the December 2007 release of #Perl v5.10: https://lists.apache.org/thread/shyvjnl3dww17pdv24147vbnnwpcb64b
#ModPerl embeds a #Perl runtime in the Apache #httpd web server, hooking it into all stages of the request and response process as well as configuration file logic. Before the advent of #PSGI and #Plack in the 2010s it was the recommended platform for persistent Perl web applications without the overhead of legacy #CGI.
#apache #perl #modperl #httpd #psgi #plack #cgi #webdev #asf
I've released a new #Perl Plack::Middleware::Security::Simple module to #CPAN https://metacpan.org/release/RRWO/Plack-Middleware-Security-Simple-v0.9.1
The main change is bumping the minimum Perl version to v5.14.
This module adds simple #security filtering for #PSGI applications, akin to modsecurity. It also has a set of common filtering rules to block common vulnerability scanners and script kiddies.
@js @berkes @simon #CGI for #Perl #WebDev hasn't been a best practice since the release of the #PSGI spec and #Plack middleware in 2009. There are several very good frameworks that build on PSGI, described here for folks coming from CGI: https://metacpan.org/pod/CGI::Alternatives
The CGI module itself was removed from the core Perl distribution with v5.20 in 2014 https://perldoc.perl.org/perl5200delta#CGI-and-its-associated-CGI::-packages
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