Commit graph

5 commits

Author SHA1 Message Date
32c87fbc39 Add new flags for robots.txt and URL rewrites 2025-01-10 07:24:45 -05:00
e4781e7f37 Add portal flag
Proxing all small web through /x/ might not be desirable. In this commit I am adding a new argument, -p, that allows proxing all external requests using a third party proxy, like Portal (https://portal.mozz.us).

By proding a value for this parameter any request made to `/x/` whose host does not match the root host will be rejected.
2025-01-08 08:31:56 -05:00
nytpu
988a00f126 Add -e flag to place a stylesheet externally rather than loading it inline
By default, kineto loads a stylesheet given to -s from disk and places
it inline with the HTML in a <style>...</style> block.  This patch adds
a -e flag to load a stylesheet externally.  When the -e flag is passed
with a URI (relative or absolute), the given link is placed in the href
of a <link rel="stylesheet"...> tag.  This helps facilitate caching
which can *significantly* reduce request overhead, particularly when the
stylesheet is large (>= the size of the page content).

The given URI is not validated, and if it is invalid the browser will
404 when requesting it and the page will have no style.
2021-05-31 17:05:38 -06:00
José Mota
1975525eeb Add support for custom CSS. 2021-02-16 08:34:19 -05:00
Drew DeVault
8527505573 Initial commit 2020-10-11 13:43:39 -04:00