This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Caddy HTTP/2 web server | |
Documentation=https://caddyserver.com/docs | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
Restart=on-failure | |
StartLimitInterval=0 | |
StartLimitBurst=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# H2 push | |
# Needed on all pages: | |
push / { | |
/assets/css/reset.css?v=1 | |
/assets/images/twitter.svg | |
/assets/images/github.svg | |
/assets/css/generics.css?v=1 | |
/assets/css/main-header.css?v=1 | |
/assets/css/main-footer.css?v=1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public-Key-Pins: pin-sha256="YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg="; pin-sha256="sRHdihwgkaib1P1gxX8HFszlD+7/gTfNvuAybgLPNis="; max-age=31536000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LATESTNGINX="1.11.10" | |
BUILDROOT="/tmp/boring-nginx" | |
# Pre-req | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Install deps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: This isn't working code, I rehashed it as an example from one of my projects | |
import https from "https"; | |
const requestOptions = | |
{ | |
// See https://nodejs.org/api/http.html#http_http_request_options_callback | |
}; | |
const req = https.request(requestOptions, (res) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apk update | |
apk install curl python build-base gcc abuild binutils binutils-doc gcc-doc linux-headers | |
curl -L -O https://nodejs.org/dist/v4.6.0/node-v4.6.0.tar.gz | |
tar xzf node-v4.6.0.tar.gz | |
cd node-v4.6.0 | |
./configure | |
make | |
make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"blockedURI": { | |
"http://static.bbci.co.uk": { | |
"0": 20, | |
"200": 1 | |
}, | |
"inline": { | |
"0": 8, | |
"200": 5 | |
}, |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "WebInspector", | |
"version": "537.36" | |
}, | |
"pages": [ | |
{ | |
"startedDateTime": "2016-05-27T11:43:56.762Z", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// Core deps | |
const path = require("path"); | |
const fs = require("fs"); | |
// Monolith PoC | |
let HARFile = path.join(__dirname, "/data/har2.js"); | |
fs.readFile(HARFile, (err, data) => | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/http/ngx_http_cache.h 2015-06-05 15:10:36.000000000 +0100 | |
+++ b/src/http/ngx_http_cache.h 2015-06-05 15:16:21.000000000 +0100 | |
@@ -25,7 +25,7 @@ | |
#define NGX_HTTP_CACHE_KEY_LEN 16 | |
#define NGX_HTTP_CACHE_ETAG_LEN 42 | |
-#define NGX_HTTP_CACHE_VARY_LEN 42 | |
+#define NGX_HTTP_CACHE_VARY_LEN 4096 | |
#define NGX_HTTP_CACHE_VERSION 3 |