From: Charles McGarvey Date: Wed, 13 Jul 2016 18:01:44 +0000 (-0600) Subject: more fixes X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6740ecdc7e41e311927e1ee0f3085e38601f3dcd;p=chaz%2Ftalk-introduction-to-psgi more fixes --- diff --git a/app.psgi b/app.psgi index 2175cd8..1f649fa 100644 --- a/app.psgi +++ b/app.psgi @@ -58,9 +58,10 @@ builder { mount '/myip' => $sample_app; - mount '/css' => Plack::App::Directory->new(root => 'css')->to_app; - mount '/img' => Plack::App::Directory->new(root => 'img')->to_app; + mount '/css' => Plack::App::Directory->new(root => 'css')->to_app; + mount '/img' => Plack::App::Directory->new(root => 'img')->to_app; + mount '/js' => Plack::App::Directory->new(root => 'js')->to_app; mount '/remark.min.js' => Plack::App::File->new(file => 'remark.min.js')->to_app; - mount '/' => Plack::App::File->new(file => 'slides-offline.html')->to_app; + mount '/' => Plack::App::File->new(file => 'slides-offline.html')->to_app; }; diff --git a/css/slides.css b/css/slides.css index afcfaf2..71ffcdc 100644 --- a/css/slides.css +++ b/css/slides.css @@ -37,10 +37,6 @@ margin-bottom: 0; } -.plack ul { - font-size:1.1em; -} - .plackup .remark-code { font-size: 24px; } diff --git a/slides.html b/slides.html index 61f2b9c..7625891 100644 --- a/slides.html +++ b/slides.html @@ -1041,6 +1041,133 @@ my $app = sub { --- +class: env +layout: true + +## PSGI Environment + +--- + +.condensed.marginfix[ +.col[ +- `HTTP_ACCEPT` +- `HTTP_ACCEPT_ENCODING` +- `HTTP_ACCEPT_LANGUAGE` +- `HTTP_CACHE_CONTROL` +- `HTTP_CONNECTION` +- `HTTP_DNT` +- `HTTP_HOST` +- `HTTP_USER_AGENT` +- `PATH_INFO` +- `QUERY_STRING ` +- `REMOTE_ADDR` +- `REMOTE_PORT` +- `REQUEST_METHOD` +- `REQUEST_URI` +- `SCRIPT_NAME` +] +.col[ +- `SERVER_NAME` +- `SERVER_PORT` +- `SERVER_PROTOCOL` +- `psgi.errors` +- `psgi.input` +- `psgi.multiprocess` +- `psgi.multithread` +- `psgi.nonblocking` +- `psgi.run_once` +- `psgi.streaming` +- `psgi.url_scheme` +- `psgi.version` +- `psgix.harakiri` +- `psgix.input.buffered` +- `psgix.io` +] +] + +--- + +.condensed.marginfix[ +.col[ +- .highlight[`HTTP_ACCEPT`] +- .highlight[`HTTP_ACCEPT_ENCODING`] +- .highlight[`HTTP_ACCEPT_LANGUAGE`] +- .highlight[`HTTP_CACHE_CONTROL`] +- .highlight[`HTTP_CONNECTION`] +- .highlight[`HTTP_DNT`] +- .highlight[`HTTP_HOST`] +- .highlight[`HTTP_USER_AGENT`] +- .highlight[`PATH_INFO`] +- .highlight[`QUERY_STRING `] +- .highlight[`REMOTE_ADDR`] +- .highlight[`REMOTE_PORT`] +- .highlight[`REQUEST_METHOD`] +- .highlight[`REQUEST_URI`] +- .highlight[`SCRIPT_NAME`] +] +.col[ +- .highlight[`SERVER_NAME`] +- .highlight[`SERVER_PORT`] +- .highlight[`SERVER_PROTOCOL`] +- `psgi.errors` +- `psgi.input` +- `psgi.multiprocess` +- `psgi.multithread` +- `psgi.nonblocking` +- `psgi.run_once` +- `psgi.streaming` +- `psgi.url_scheme` +- `psgi.version` +- `psgix.harakiri` +- `psgix.input.buffered` +- `psgix.io` +] +] + +--- + +.condensed.marginfix[ +.col[ +- `HTTP_ACCEPT` +- `HTTP_ACCEPT_ENCODING` +- `HTTP_ACCEPT_LANGUAGE` +- `HTTP_CACHE_CONTROL` +- `HTTP_CONNECTION` +- `HTTP_DNT` +- `HTTP_HOST` +- `HTTP_USER_AGENT` +- `PATH_INFO` +- `QUERY_STRING ` +- `REMOTE_ADDR` +- `REMOTE_PORT` +- `REQUEST_METHOD` +- `REQUEST_URI` +- `SCRIPT_NAME` +] +.col[ +- `SERVER_NAME` +- `SERVER_PORT` +- `SERVER_PROTOCOL` +- .highlight[`psgi.errors`] +- .highlight[`psgi.input`] +- .highlight[`psgi.multiprocess`] +- .highlight[`psgi.multithread`] +- .highlight[`psgi.nonblocking`] +- .highlight[`psgi.run_once`] +- .highlight[`psgi.streaming`] +- .highlight[`psgi.url_scheme`] +- .highlight[`psgi.version`] +- .highlight[`psgix.harakiri`] +- .highlight[`psgix.input.buffered`] +- .highlight[`psgix.io`] +] +] + +??? +- Harakiri is a form of Japanese ritual suicide by disembowelment. + +--- + layout: false ## Benefits of PSGI @@ -1227,130 +1354,6 @@ my $app = sub { --- -class: env -layout: true - -## Plack `$env` - ---- - -.condensed.marginfix[ -.col[ -- `HTTP_ACCEPT` -- `HTTP_ACCEPT_ENCODING` -- `HTTP_ACCEPT_LANGUAGE` -- `HTTP_CACHE_CONTROL` -- `HTTP_CONNECTION` -- `HTTP_DNT` -- `HTTP_HOST` -- `HTTP_USER_AGENT` -- `PATH_INFO` -- `QUERY_STRING ` -- `REMOTE_ADDR` -- `REMOTE_PORT` -- `REQUEST_METHOD` -- `REQUEST_URI` -- `SCRIPT_NAME` -] -.col[ -- `SERVER_NAME` -- `SERVER_PORT` -- `SERVER_PROTOCOL` -- `psgi.errors` -- `psgi.input` -- `psgi.multiprocess` -- `psgi.multithread` -- `psgi.nonblocking` -- `psgi.run_once` -- `psgi.streaming` -- `psgi.url_scheme` -- `psgi.version` -- `psgix.harakiri` -- `psgix.input.buffered` -- `psgix.io` -] -] - ---- - -.condensed.marginfix[ -.col[ -- .highlight[`HTTP_ACCEPT`] -- .highlight[`HTTP_ACCEPT_ENCODING`] -- .highlight[`HTTP_ACCEPT_LANGUAGE`] -- .highlight[`HTTP_CACHE_CONTROL`] -- .highlight[`HTTP_CONNECTION`] -- .highlight[`HTTP_DNT`] -- .highlight[`HTTP_HOST`] -- .highlight[`HTTP_USER_AGENT`] -- .highlight[`PATH_INFO`] -- .highlight[`QUERY_STRING `] -- .highlight[`REMOTE_ADDR`] -- .highlight[`REMOTE_PORT`] -- .highlight[`REQUEST_METHOD`] -- .highlight[`REQUEST_URI`] -- .highlight[`SCRIPT_NAME`] -] -.col[ -- .highlight[`SERVER_NAME`] -- .highlight[`SERVER_PORT`] -- .highlight[`SERVER_PROTOCOL`] -- `psgi.errors` -- `psgi.input` -- `psgi.multiprocess` -- `psgi.multithread` -- `psgi.nonblocking` -- `psgi.run_once` -- `psgi.streaming` -- `psgi.url_scheme` -- `psgi.version` -- `psgix.harakiri` -- `psgix.input.buffered` -- `psgix.io` -] -] - ---- - -.condensed.marginfix[ -.col[ -- `HTTP_ACCEPT` -- `HTTP_ACCEPT_ENCODING` -- `HTTP_ACCEPT_LANGUAGE` -- `HTTP_CACHE_CONTROL` -- `HTTP_CONNECTION` -- `HTTP_DNT` -- `HTTP_HOST` -- `HTTP_USER_AGENT` -- `PATH_INFO` -- `QUERY_STRING ` -- `REMOTE_ADDR` -- `REMOTE_PORT` -- `REQUEST_METHOD` -- `REQUEST_URI` -- `SCRIPT_NAME` -] -.col[ -- `SERVER_NAME` -- `SERVER_PORT` -- `SERVER_PROTOCOL` -- .highlight[`psgi.errors`] -- .highlight[`psgi.input`] -- .highlight[`psgi.multiprocess`] -- .highlight[`psgi.multithread`] -- .highlight[`psgi.nonblocking`] -- .highlight[`psgi.run_once`] -- .highlight[`psgi.streaming`] -- .highlight[`psgi.url_scheme`] -- .highlight[`psgi.version`] -- .highlight[`psgix.harakiri`] -- .highlight[`psgix.input.buffered`] -- .highlight[`psgix.io`] -] -] - ---- - layout: false ## Plack Handlers @@ -1435,6 +1438,9 @@ enable 'RedirectSSL'; - Redirects from http to https (or backwards, if configured). - Can also set HSTS header with configurable `max-age`. +??? +- HSTS = HTTP Strict Transport Security + --- layout: false